mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
21 lines
591 B
Go
21 lines
591 B
Go
package constants
|
|
|
|
import (
|
|
"github.com/go-playground/validator/v10"
|
|
"github.com/gofiber/fiber/v2"
|
|
"gorm.io/gorm"
|
|
|
|
rConstant "gitlab.com/mbugroup/lti-api.git/internal/modules/constants/repositories"
|
|
sConstant "gitlab.com/mbugroup/lti-api.git/internal/modules/constants/services"
|
|
)
|
|
|
|
type ConstantModule struct{}
|
|
|
|
func (ConstantModule) RegisterRoutes(router fiber.Router, db *gorm.DB, validate *validator.Validate) {
|
|
constantRepo := rConstant.NewConstantRepository(db)
|
|
|
|
constantService := sConstant.NewConstantService(constantRepo, validate)
|
|
|
|
ConstantRoutes(router, constantService)
|
|
}
|