online-order/api/middlewares/router.go

13 lines
296 B
Go
Raw Normal View History

2023-10-27 09:51:58 +00:00
package middlewares
import (
"online-order/entity"
)
func NewMiddlewareRouters(server *entity.Routers) *controller {
userRepo := repository_product.NewUserClient(server.Database)
authService := service_authentication.NewAuthService(userRepo)
return NewMiddlewareControllers(authService)
}