UPDATE: fix bug
All checks were successful
Build and Release / release (push) Successful in 1m34s

This commit is contained in:
2026-04-14 17:06:09 +07:00
parent f7925bc4ee
commit acecd1738e
9 changed files with 49 additions and 42 deletions

View File

@@ -10,15 +10,16 @@ import (
func RoleRoutes(app *fiber.App, controller *controllers.RoleController, userRepo repositories.UserRepository) {
route := app.Group("/roles")
route.Get(
"/",
middlewares.JwtAccess(userRepo),
controller.GetAllRole,
)
route.Get(
"/:id",
middlewares.JwtAccess(userRepo),
controller.GetRoleById,
)
route.Get(
"/",
middlewares.JwtAccess(userRepo),
controller.GetAllRole,
)
}