Refactor
This commit is contained in:
@@ -19,7 +19,7 @@ func SetupRouter(s *Server) {
|
||||
|
||||
s.Get("/health", s.HealthHandler)
|
||||
|
||||
api := s.Group("/api")
|
||||
v1 := api.Group("/v1")
|
||||
v1.Post("/login", s.LoginHandler)
|
||||
s.Group("/v1").
|
||||
Post("/login", s.LoginHandlerFn).
|
||||
Post("/register", s.RegisterHandlerFn)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user