feat: make routing per role, add unlogged role

This commit is contained in:
2026-04-14 09:49:37 +02:00
parent 26cbdeec0a
commit 967b101f9b
13 changed files with 128 additions and 36 deletions

View File

@@ -49,7 +49,7 @@ func AuthHandlerRoutes(r fiber.Router) fiber.Router {
r.Get("/google", handler.GoogleLogin)
r.Get("/google/callback", handler.GoogleCallback)
authProtected := r.Group("", middleware.AuthMiddleware())
authProtected := r.Group("", middleware.Authorize())
authProtected.Get("/me", handler.Me)
authProtected.Post("/update-choice", handler.UpdateJWTToken)