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) }