feat: 新增应用配置管理模块并实现用户认证处理器,支持环境配置加载和GitHub OAuth。
This commit is contained in:
@@ -5,9 +5,9 @@ import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
|
||||
"accounting-app/pkg/api"
|
||||
"accounting-app/internal/config"
|
||||
"accounting-app/internal/service"
|
||||
"accounting-app/pkg/api"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@@ -181,7 +181,7 @@ func (h *AuthHandler) GitHubCallback(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
frontendURL := "http://localhost:5173"
|
||||
frontendURL := "http://localhost:2613"
|
||||
if h.cfg != nil && h.cfg.FrontendURL != "" {
|
||||
frontendURL = h.cfg.FrontendURL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user