added a simple check route

This commit is contained in:
2026-01-05 14:03:51 +08:00
parent 6fe17327d8
commit 60ef06219b
+1
View File
@@ -20,6 +20,7 @@ func SetupRoutes(router *mux.Router, db *sql.DB) {
authRoutes := router.PathPrefix("/v1/auth").Subrouter()
authRoutes.HandleFunc("/check", rateLimiter(middleware.JWTAuth(handlers.AuthorizeHandler))).Methods("POST")
authRoutes.HandleFunc("/simple-check", rateLimiter(middleware.JWTAuth(handlers.SimpleCheckHandler))).Methods("POST")
router.PathPrefix("/swagger/").Handler(httpSwagger.WrapHandler)
}