Addded refactor note to Router

This commit is contained in:
2025-10-22 13:48:25 +02:00
parent 1e1cce9dc2
commit e97b232207

View File

@@ -21,7 +21,7 @@ func SetupRouter(s *Server) {
s.Group("/v1").
Post("/login", s.LoginHandlerFn).
Post("/refresh", s.RefreshHandlerFn).
Post("/refresh", s.RefreshHandlerFn). // TODO: add JWTProtected() and get token from Auth Bearer Header not from the Body
Post("/register", s.RegisterHandlerFn).
Get("/access", JWTProtected(s), s.AccessHandlerFn)
}