14 lines
262 B
Go
14 lines
262 B
Go
|
package routes
|
||
|
|
||
|
import (
|
||
|
"cds/controllers"
|
||
|
|
||
|
"github.com/gofiber/fiber/v2"
|
||
|
)
|
||
|
|
||
|
func UserRoute(route fiber.Router) {
|
||
|
route.Get("/current", controllers.GetCurrentUser)
|
||
|
route.Get("/:id", controllers.GetUser)
|
||
|
route.Get("/:id/groups", controllers.GetGroupsUser)
|
||
|
}
|