Added access checking middleware
Added URLAccessRepository Refactor
This commit is contained in:
@@ -22,5 +22,6 @@ func SetupRouter(s *Server) {
|
||||
s.Group("/v1").
|
||||
Post("/login", s.LoginHandlerFn).
|
||||
Post("/refresh", s.RefreshHandlerFn).
|
||||
Post("/register", s.RegisterHandlerFn)
|
||||
Post("/register", s.RegisterHandlerFn).
|
||||
Get("/access", JWTProtected(s), s.AccessHandlerFn)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user