重构代码结构,优化连接管理和日志记录
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"log/slog"
|
||||
"proxy-server/server/pkg/orm"
|
||||
"proxy-server/server/pkg/resp"
|
||||
"proxy-server/server/web/app/models"
|
||||
"proxy-server/server/web/models"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -3,7 +3,7 @@ package handlers
|
||||
import (
|
||||
"os"
|
||||
"proxy-server/server/pkg/orm"
|
||||
"proxy-server/server/web/app/models"
|
||||
"proxy-server/server/web/models"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/pkg/errors"
|
||||
@@ -1,17 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"proxy-server/server/web/app/handlers"
|
||||
handlers2 "proxy-server/server/web/handlers"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Apply(r *gin.Engine) {
|
||||
|
||||
r.POST("/node/register", handlers.NodeRegister)
|
||||
r.POST("/node/report", handlers.NodeReport)
|
||||
r.POST("/node/register", handlers2.NodeRegister)
|
||||
r.POST("/node/report", handlers2.NodeReport)
|
||||
|
||||
r.POST("/chan/request", handlers.ChanRequest)
|
||||
r.POST("/chan/auth", handlers.ChanAuth)
|
||||
r.POST("/chan/test", handlers.ChanTest)
|
||||
r.POST("/chan/request", handlers2.ChanRequest)
|
||||
r.POST("/chan/auth", handlers2.ChanAuth)
|
||||
r.POST("/chan/test", handlers2.ChanTest)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user