fixed authorization

This commit is contained in:
2025-12-09 15:42:35 +08:00
parent ca49e8e24b
commit 5743dbf22d
15 changed files with 1936 additions and 62 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ import (
)
func SetupRoutes(router *mux.Router, db *sql.DB) {
authzRoutes := router.PathPrefix("/v1/auth").Subrouter()
authzRoutes.HandleFunc("/check", middleware.JWTAuth(handlers.AuthorizeHandler)).Methods("POST")
authRoutes := router.PathPrefix("/v1/auth").Subrouter()
authRoutes.HandleFunc("/check", middleware.JWTAuth(handlers.AuthorizeHandler)).Methods("POST")
router.PathPrefix("/swagger/").Handler(httpSwagger.WrapHandler)
}