2024-06-02 12:45:56 +00:00
|
|
|
package admin
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
)
|
|
|
|
|
2024-06-30 03:52:36 +00:00
|
|
|
func MapAdminAPIs(app *fiber.App) {
|
2024-06-22 12:05:21 +00:00
|
|
|
admin := app.Group("/api/admin")
|
2024-06-02 12:45:56 +00:00
|
|
|
{
|
|
|
|
admin.Post("/badges", grantBadge)
|
|
|
|
admin.Delete("/badges/:badgeId", revokeBadge)
|
2024-06-30 03:32:01 +00:00
|
|
|
|
|
|
|
admin.Post("/notify/all", notifyAllUser)
|
2024-06-02 12:45:56 +00:00
|
|
|
}
|
|
|
|
}
|