admin page add

This commit is contained in:
chan committed 2026-01-16 11:07:55 +09:00
1 parent c51abd12dc
commit 290d5c6c86
6 files changed
+481 -13

No files matched your search

+6
View File
@@ -61,6 +61,7 @@ func main() {
// 2. Initialize Handlers
auditHandler := handler.NewAuditHandler(auditRepo)
authHandler := handler.NewAuthHandler()
adminHandler := handler.NewAdminHandler()
// 3. Initialize Fiber
app := fiber.New(fiber.Config{
@@ -132,6 +133,11 @@ func main() {
auth.Post("/sms", authHandler.SendSms)
auth.Post("/verify-sms", authHandler.VerifySms)
// Admin Routes
admin := api.Group("/admin")
admin.Post("/users", adminHandler.CreateUser)
admin.Get("/check", adminHandler.CheckAuth)
// Webhook for Descope Generic SMS Gateway
auth.Post("/webhooks/descope-sms", authHandler.HandleDescopeSmsRelay)