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

23 lines
564 B
Go
Raw Normal View History

2024-06-02 12:45:56 +00:00
package admin
import (
"github.com/gofiber/fiber/v2"
)
func MapAdminAPIs(app *fiber.App, baseURL string) {
admin := app.Group(baseURL)
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-07-03 15:07:59 +00:00
admin.Post("/notify/:user", notifyOneUser)
admin.Get("/users", listUser)
admin.Get("/users/:user", getUser)
admin.Get("/users/:user/factors", getUserAuthFactors)
admin.Put("/users/:user/permissions", editUserPermission)
2024-07-03 15:01:20 +00:00
admin.Post("/users/:user/confirm", forceConfirmAccount)
2024-06-02 12:45:56 +00:00
}
}