Passport/pkg/internal/server/admin/index.go

14 lines
221 B
Go
Raw Normal View History

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