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

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

No files matched your search

-5
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()