14 lines
340 B
Go
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)
|
|
}
|