added auth validate route

This commit is contained in:
2025-01-28 18:09:26 +01:00
parent f7efee56f0
commit 86c43fffc0
4 changed files with 31 additions and 5 deletions

View File

@@ -14,8 +14,8 @@ func SetupRoutes(app *fiber.App) {
api := app.Group("/api", logger.New())
// Auth group
auth := api.Group("/auth")
auth := api.Group("/auth", middleware.Protected(), handlers.ValidateToken)
auth.Post("/signup", handlers.Signup)
auth.Post("/login", handlers.Login)
auth.Get("/validate", handlers.ValidateToken)
}