🐛 Fix API mapping issue
This commit is contained in:
@ -4,7 +4,7 @@ import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func MapAdminEndpoints(app *fiber.App) {
|
||||
func MapAdminAPIs(app *fiber.App) {
|
||||
admin := app.Group("/api/admin")
|
||||
{
|
||||
admin.Post("/badges", grantBadge)
|
||||
|
@ -61,8 +61,8 @@ func NewServer() *HTTPApp {
|
||||
app.Use(exts.AuthMiddleware)
|
||||
app.Use(i18n.I18nMiddleware)
|
||||
|
||||
admin.MapAdminAPIs(app)
|
||||
api.MapAPIs(app)
|
||||
admin.MapAdminEndpoints(app)
|
||||
|
||||
app.Use(filesystem.New(filesystem.Config{
|
||||
Root: http.Dir(viper.GetString("frontend_app")),
|
||||
|
Reference in New Issue
Block a user