13 lines
296 B
Go
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)
|
|
}
|