online-order/api/middlewares/router.go
2023-10-28 01:42:56 +03:30

14 lines
340 B
Go

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