2024-06-02 12:45:56 +00:00
|
|
|
package admin
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
)
|
|
|
|
|
2024-06-02 14:13:41 +00:00
|
|
|
func MapAdminEndpoints(A *fiber.App, authMiddleware fiber.Handler) {
|
|
|
|
admin := A.Group("/api/admin").Use(authMiddleware)
|
2024-06-02 12:45:56 +00:00
|
|
|
{
|
|
|
|
admin.Post("/badges", grantBadge)
|
|
|
|
admin.Delete("/badges/:badgeId", revokeBadge)
|
|
|
|
}
|
|
|
|
}
|