feat: add claude code channel

This commit is contained in:
Seefs committed 2025-07-26 18:06:46 +08:00
1 parent 31d5e39d2b
commit 1389cc7acd
17 files changed
+766 -27

No files matched your search

+3
View File
@@ -120,6 +120,9 @@ func SetApiRouter(router *gin.Engine) {
channelRoute.POST("/batch/tag", controller.BatchSetChannelTag)
channelRoute.GET("/tag/models", controller.GetTagModels)
channelRoute.POST("/copy/:id", controller.CopyChannel)
// Claude OAuth路由
channelRoute.GET("/claude/oauth/url", controller.GenerateClaudeOAuthURL)
channelRoute.POST("/claude/oauth/exchange", controller.ExchangeClaudeOAuthCode)
}
tokenRoute := apiRouter.Group("/token")
tokenRoute.Use(middleware.UserAuth())