⬆️ Configured for support dealer

This commit is contained in:
2024-07-16 18:09:18 +08:00
parent c912271610
commit cef0a552f4
4 changed files with 10 additions and 10 deletions

View File

@ -4,8 +4,8 @@ import (
"github.com/gofiber/fiber/v2"
)
func MapAdminAPIs(app *fiber.App) {
admin := app.Group("/api/admin")
func MapAdminAPIs(app *fiber.App, baseURL string) {
admin := app.Group(baseURL)
{
admin.Post("/badges", grantBadge)
admin.Delete("/badges/:badgeId", revokeBadge)