Update template email

This commit is contained in:
aditya.siregar
2025-03-08 00:35:23 +07:00
parent 3c80b710af
commit 18003313dd
54 changed files with 2309 additions and 199 deletions
+16
View File
@@ -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)
}
}