feat: konfigurasi sistem toggle pemakaian pakan ovk negatif

This commit is contained in:
Adnan Zahir
2026-04-28 10:51:54 +07:00
parent 1d6e1fa5be
commit 6f6541d4c1
15 changed files with 347 additions and 1 deletions
+16
View File
@@ -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)
}