修复节点信息API
Some checks failed
build / build (api, amd64, linux) (push) Failing after -46s
build / build (api, arm64, linux) (push) Failing after -51s
build / build (api.exe, amd64, windows) (push) Failing after -51s

This commit is contained in:
CN-JS-HuiBai
2026-04-18 00:52:43 +08:00
parent 64655932b1
commit f9c34fcf87
4 changed files with 123 additions and 5 deletions

View File

@@ -174,6 +174,7 @@ func registerServerRoutesV1(v1 *gin.RouterGroup) {
uniProxy.GET("/config", handler.NodeConfig)
uniProxy.GET("/user", handler.NodeUser)
uniProxy.POST("/push", handler.NodePush)
uniProxy.GET("/alive", handler.NodeAlive)
uniProxy.POST("/alive", handler.NodeAlive)
uniProxy.GET("/alivelist", handler.NodeAliveList)
uniProxy.POST("/status", handler.NodeStatus)
@@ -198,6 +199,7 @@ func registerServerRoutesV2(v2 *gin.RouterGroup) {
server.GET("/config", handler.NodeConfig)
server.GET("/user", handler.NodeUser)
server.POST("/push", handler.NodePush)
server.GET("/alive", handler.NodeAlive)
server.POST("/alive", handler.NodeAlive)
server.GET("/alivelist", handler.NodeAliveList)
server.POST("/status", handler.NodeStatus)