feat: 添加登录功能和路由注册

This commit is contained in:
tbphp
2025-07-01 12:29:16 +08:00
parent d5ebbf10f5
commit 92fdd6d680
3 changed files with 119 additions and 59 deletions

View File

@@ -32,11 +32,6 @@ func NewProxyServer(db *gorm.DB, requestLogChan chan models.RequestLog) (*ProxyS
}, nil
}
// RegisterProxyRoutes registers the main proxy route under a given router group
func (ps *ProxyServer) RegisterProxyRoutes(proxy *gin.RouterGroup) {
proxy.Any("/:group_name/*path", ps.HandleProxy)
}
// HandleProxy handles the main proxy logic
func (ps *ProxyServer) HandleProxy(c *gin.Context) {
startTime := time.Now()