package production

import (
	"gitlab.com/mbugroup/lti-api.git/internal/modules"

	"github.com/go-playground/validator/v10"
	"github.com/gofiber/fiber/v2"
	"gorm.io/gorm"

	chickins "gitlab.com/mbugroup/lti-api.git/internal/modules/production/chickins"
	projectflocks "gitlab.com/mbugroup/lti-api.git/internal/modules/production/project_flocks"
	recordings "gitlab.com/mbugroup/lti-api.git/internal/modules/production/recordings"
	// MODULE IMPORTS
)

func RegisterRoutes(router fiber.Router, db *gorm.DB, validate *validator.Validate) {
	group := router.Group("/production")

	allModules := []modules.Module{
		projectflocks.ProjectflockModule{},
		recordings.RecordingModule{},
		chickins.ChickinModule{},
		// MODULE REGISTRY
	}

	for _, m := range allModules {
		m.RegisterRoutes(group, db, validate)
	}
}
