online-order/api/middlewares/router.go
2023-10-27 13:21:58 +03:30

13 lines
296 B
Go

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