Before Fine Tune
This commit is contained in:
11
Backend/internal/handlers/api/admin/routes.go
Normal file
11
Backend/internal/handlers/api/admin/routes.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
authmw "boostai-backend/internal/middleware"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func RegisterRoutes(app fiber.Router, auth *authmw.AuthMiddleware, h *Handler) {
|
||||
app.Post("/internal/admin/reseed", auth.RequireTeacher(), h.ReseedDatabase)
|
||||
}
|
||||
Reference in New Issue
Block a user