fix: comment out debug/goroutines endpoint and support tunnel proxy in sync APIs

This commit is contained in:
duorameng
2026-06-25 20:27:54 +08:00
parent 60eb34e27b
commit 19584d583a
+5 -5
View File
@@ -13,11 +13,11 @@ func initPublicAPIRoutes(api *gin.RouterGroup, c *Controllers) {
ctx.JSON(200, gin.H{"message": "pong"})
})
api.GET("/debug/goroutines", func(ctx *gin.Context) {
buf := make([]byte, 1024*1024)
n := runtime.Stack(buf, true)
ctx.Data(200, "text/plain; charset=utf-8", buf[:n])
})
// api.GET("/debug/goroutines", func(ctx *gin.Context) {
// buf := make([]byte, 1024*1024)
// n := runtime.Stack(buf, true)
// ctx.Data(200, "text/plain; charset=utf-8", buf[:n])
// })
// Authentication routes (无需认证)
auth := api.Group("/auth")