feat: 初步重构

This commit is contained in:
1808837298@qq.com
2024-02-29 01:08:18 +08:00
parent 1250041389
commit 1735981217
67 changed files with 2646 additions and 2243 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ import (
"one-api/controller"
"one-api/middleware"
"one-api/model"
"one-api/relay/common"
"one-api/router"
"os"
"strconv"
@@ -105,7 +106,7 @@ func main() {
common.SysLog("pprof enabled")
}
controller.InitTokenEncoders()
common.InitTokenEncoders()
// Initialize HTTP server
server := gin.New()