mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +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
718 B
Go
29 lines
718 B
Go
package inventory
|
|
|
|
import (
|
|
"gitlab.com/mbugroup/lti-api.git/internal/modules"
|
|
|
|
"github.com/go-playground/validator/v10"
|
|
"github.com/gofiber/fiber/v2"
|
|
"gorm.io/gorm"
|
|
|
|
productWarehouses "gitlab.com/mbugroup/lti-api.git/internal/modules/inventory/product-warehouses"
|
|
adjustments "gitlab.com/mbugroup/lti-api.git/internal/modules/inventory/adjustments"
|
|
// MODULE IMPORTS
|
|
)
|
|
|
|
func RegisterRoutes(router fiber.Router, db *gorm.DB, validate *validator.Validate) {
|
|
group := router.Group("/inventory")
|
|
|
|
allModules := []modules.Module{
|
|
productWarehouses.ProductWarehouseModule{},
|
|
|
|
adjustments.AdjustmentModule{},
|
|
// MODULE REGISTRY
|
|
}
|
|
|
|
for _, m := range allModules {
|
|
m.RegisterRoutes(group, db, validate)
|
|
}
|
|
}
|