package middlewares import ( "online-order/entity" "online-order/repository/product" ) func NewMiddlewareRouters(server *entity.Routers) *controller { productRepo := repository_product.NewProductClient(server.Database) authService := service_authentication.NewAuthService(productRepo) return NewMiddlewareControllers(authService) }