Passport/pkg/internal/server/admin/index.go
2024-06-22 13:04:21 +08:00

14 lines
221 B
Go

package admin
import (
"github.com/gofiber/fiber/v2"
)
func MapAdminEndpoints(A *fiber.App) {
admin := A.Group("/api/admin")
{
admin.Post("/badges", grantBadge)
admin.Delete("/badges/:badgeId", revokeBadge)
}
}