comnpany to cm
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"bordro-esleme/api/public"
|
||||
"fmt"
|
||||
"git.makki.io/makki/libgo/napi"
|
||||
"git.makki.io/makki/libgo/nauth"
|
||||
"git.notitek.com.tr/common/notgo/napi"
|
||||
"git.notitek.com.tr/common/notgo/nauth"
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
@@ -51,8 +50,7 @@ func HttpHandler(re enums.TRunEnv) http.Handler {
|
||||
|
||||
mux.Route("/api", func(mr chi.Router) {
|
||||
// Public Route endpoints
|
||||
mr.Mount("/", public.Router())
|
||||
//mr.Mount("/admin", admin.Router())
|
||||
mr.Post("/login", napi.Login)
|
||||
|
||||
//protected end points
|
||||
mr.Group(func(r chi.Router) {
|
||||
|
||||
Reference in New Issue
Block a user