Add Voucher Undian
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user