Add Voucher Undian

This commit is contained in:
aditya.siregar
2025-06-06 21:14:28 +07:00
parent 54144b2eba
commit fa8f0ad380
10 changed files with 530 additions and 413 deletions
+3
View File
@@ -16,6 +16,7 @@ func RegisterCustomerRoutes(app *app.Server, serviceManager *services.ServiceMan
approute := app.Group("/api/v1/customer")
authMiddleware := middlewares.CustomerAuthorizationMiddleware(repoManager.Crypto)
optionlMiddleWare := middlewares.OptionalCustomerAuthorizationMiddleware(repoManager.Crypto)
serverRoutes := []HTTPHandlerRoutes{
discovery.NewHandler(serviceManager.DiscoverService),
@@ -27,4 +28,6 @@ func RegisterCustomerRoutes(app *app.Server, serviceManager *services.ServiceMan
for _, handler := range serverRoutes {
handler.Route(approute, authMiddleware)
}
http.NewCustomerUndianHandler(serviceManager.UndianSvc).Route(approute, optionlMiddleWare)
}
-1
View File
@@ -44,7 +44,6 @@ func RegisterPrivateRoutes(app *app.Server, serviceManager *services.ServiceMana
approute := app.Group("/api/v1")
authMiddleware := middlewares.AuthorizationMiddleware(repoManager.Crypto)
serverRoutes := []HTTPHandlerRoutes{
auth.NewAuthHandler(serviceManager.AuthSvc),
event.NewHandler(serviceManager.EventSvc),