mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 15:25:43 +00:00
a0bdc7b23c
✅ DB Schema: product_warehouse entity and migration ✅ Master Data: added filter params to getall APIs 🚧 Pending: stock_logs implementation and adjustment APIs
29 lines
1.0 KiB
Go
29 lines
1.0 KiB
Go
package productWarehouses
|
|
|
|
import (
|
|
// m "gitlab.com/mbugroup/lti-api.git/internal/middleware"
|
|
controller "gitlab.com/mbugroup/lti-api.git/internal/modules/inventory/product-warehouses/controllers"
|
|
productWarehouse "gitlab.com/mbugroup/lti-api.git/internal/modules/inventory/product-warehouses/services"
|
|
user "gitlab.com/mbugroup/lti-api.git/internal/modules/users/services"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func ProductWarehouseRoutes(v1 fiber.Router, u user.UserService, s productWarehouse.ProductWarehouseService) {
|
|
ctrl := controller.NewProductWarehouseController(s)
|
|
|
|
route := v1.Group("/product-warehouses")
|
|
|
|
// route.Get("/", m.Auth(u), ctrl.GetAll)
|
|
// route.Post("/", m.Auth(u), ctrl.CreateOne)
|
|
// route.Get("/:id", m.Auth(u), ctrl.GetOne)
|
|
// route.Patch("/:id", m.Auth(u), ctrl.UpdateOne)
|
|
// route.Delete("/:id", m.Auth(u), ctrl.DeleteOne)
|
|
|
|
route.Get("/", ctrl.GetAll)
|
|
route.Post("/", ctrl.CreateOne)
|
|
route.Get("/:id", ctrl.GetOne)
|
|
route.Patch("/:id", ctrl.UpdateOne)
|
|
route.Delete("/:id", ctrl.DeleteOne)
|
|
}
|