Update template email
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
http2 "enaklo-pos-be/internal/handlers/http"
|
||||
"enaklo-pos-be/internal/handlers/http/balance"
|
||||
"enaklo-pos-be/internal/handlers/http/license"
|
||||
linkqu "enaklo-pos-be/internal/handlers/http/linqu"
|
||||
@@ -68,3 +69,18 @@ func RegisterPrivateRoutes(app *app.Server, serviceManager *services.ServiceMana
|
||||
handler.Route(approute, authMiddleware)
|
||||
}
|
||||
}
|
||||
|
||||
func RegisterPrivateRoutesV2(app *app.Server, serviceManager *services.ServiceManagerImpl,
|
||||
repoManager *repository.RepoManagerImpl) {
|
||||
approute := app.Group("/api/v2")
|
||||
|
||||
authMiddleware := middlewares.AuthorizationMiddleware(repoManager.Crypto)
|
||||
|
||||
serverRoutes := []HTTPHandlerRoutes{
|
||||
http2.NewOrderHandler(serviceManager.OrderV2Svc),
|
||||
}
|
||||
|
||||
for _, handler := range serverRoutes {
|
||||
handler.Route(approute, authMiddleware)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user