延迟监测逻辑更新

This commit is contained in:
2026-07-28 20:38:21 +08:00
parent babfdee02b
commit 6904e4993f
+4 -1
View File
@@ -45,10 +45,13 @@ func SetupRouter() *gin.Engine {
api := r.Group("/api")
{
// ---- 公开路由(不需要认证) ----
api.GET("/check/users", checkUsersHandler)
api.POST("/register", registerHandler)
api.POST("/login", loginHandler)
api.GET("/ping", pingHandler) // ← 移到这里
// ---- 需要认证的路由 ----
auth := api.Group("/")
auth.Use(AuthMiddleware())
{
@@ -66,7 +69,7 @@ func SetupRouter() *gin.Engine {
auth.POST("/frpc/stop", stopFrpcHandler)
auth.GET("/frpc/status", getFrpcStatusHandler)
auth.GET("/frpc/log", getFrpcLogHandler)
auth.GET("/ping", pingHandler)
auth.POST("/import/toml", importTomlHandler)
auth.GET("/export/toml", ExportTomlHandler)