mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
feat: konfigurasi sistem toggle pemakaian pakan ovk negatif
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package systemsettings
|
||||
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
controller "gitlab.com/mbugroup/lti-api.git/internal/modules/system-settings/controllers"
|
||||
service "gitlab.com/mbugroup/lti-api.git/internal/modules/system-settings/services"
|
||||
m "gitlab.com/mbugroup/lti-api.git/internal/middleware"
|
||||
)
|
||||
|
||||
func SystemSettingRoutes(v1 fiber.Router, svc service.SystemSettingService) {
|
||||
ctrl := controller.NewSystemSettingController(svc)
|
||||
|
||||
route := v1.Group("/system-settings")
|
||||
route.Get("/", ctrl.GetAll)
|
||||
route.Patch("/allow-negative-pakan-ovk", m.RequirePermissions(m.P_SystemSettingUpdate), ctrl.SetAllowNegativePakanOVK)
|
||||
}
|
||||
Reference in New Issue
Block a user