chore: update port so it doesn't conflict with sso

This commit is contained in:
Hafizh A. Y
2025-09-30 16:48:05 +07:00
parent 94a6d41a61
commit dbc1f79a36
19 changed files with 668 additions and 37 deletions
+12 -6
View File
@@ -1,7 +1,7 @@
{{define "route"}}package {{Kebab .Entity}}s
import (
m "gitlab.com/mbugroup/lti-api.git/internal/middleware"
// m "gitlab.com/mbugroup/lti-api.git/internal/middleware"
controller "gitlab.com/mbugroup/lti-api.git/internal/modules/{{Kebab .FeatName}}s/controllers"
{{Camel .Entity}} "gitlab.com/mbugroup/lti-api.git/internal/modules/{{Kebab .FeatName}}s/services"
user "gitlab.com/mbugroup/lti-api.git/internal/modules/users/services"
@@ -14,10 +14,16 @@ func {{Pascal .Entity}}Routes(v1 fiber.Router, u user.UserService, s {{Camel .En
route := v1.Group("/{{Kebab .Entity}}s")
route.Get("/", m.Auth(u), ctrl.GetAll)
route.Post("/", m.Auth(u), ctrl.CreateOne)
route.Get("/:id", m.Auth(u), ctrl.GetOne)
route.Patch("/:id", m.Auth(u), ctrl.UpdateOne)
route.Delete("/:id", m.Auth(u), ctrl.DeleteOne)
// route.Get("/", m.Auth(u), ctrl.GetAll)
// route.Post("/", m.Auth(u), ctrl.CreateOne)
// route.Get("/:id", m.Auth(u), ctrl.GetOne)
// route.Patch("/:id", m.Auth(u), ctrl.UpdateOne)
// route.Delete("/:id", m.Auth(u), ctrl.DeleteOne)
route.Get("/", ctrl.GetAll)
route.Post("/", ctrl.CreateOne)
route.Get("/:id", ctrl.GetOne)
route.Patch("/:id", ctrl.UpdateOne)
route.Delete("/:id", ctrl.DeleteOne)
}
{{end}}