Passport/pkg/internal/server/admin/index.go
2024-07-03 23:07:59 +08:00

20 lines
428 B
Go

package admin
import (
"github.com/gofiber/fiber/v2"
)
func MapAdminAPIs(app *fiber.App) {
admin := app.Group("/api/admin")
{
admin.Post("/badges", grantBadge)
admin.Delete("/badges/:badgeId", revokeBadge)
admin.Post("/notify/all", notifyAllUser)
admin.Post("/notify/:user", notifyOneUser)
admin.Put("/users/:user/permissions", editUserPermission)
admin.Post("/users/:user/confirm", forceConfirmAccount)
}
}