UPDATE: get role content
All checks were successful
Build and Release / release (push) Successful in 1m31s

This commit is contained in:
2026-04-05 00:22:34 +07:00
parent 081bfe1a32
commit eb404b37e9
7 changed files with 353 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package routes
import (
"history-api/internal/controllers"
"history-api/internal/middlewares"
"history-api/internal/repositories"
"github.com/gofiber/fiber/v3"
)
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,
)
}