/logout was not working correctly because it was doing jwt checks

This commit is contained in:
James Tombleson 2024-07-09 08:32:59 -07:00
parent bb135917cf
commit d1f72aa0f1

View File

@ -71,8 +71,8 @@ func NewServer(ctx context.Context, configs config.Configs, apiClient apiclient.
users.POST("/login", s.UserAfterLogin)
users.GET("/signup", s.UserSignUp)
users.POST("/signup", s.UserAfterSignUp)
users.Use(ValidateJwtMiddleware(configs.JwtSecret))
users.GET("/logout", s.UsersLogout)
users.Use(ValidateJwtMiddleware(configs.JwtSecret))
users.GET("/profile", s.UserProfile)
s.Router = router