添加同步上游模型列表按钮:添加提示以及支持已有渠道获取

This commit is contained in:
bubu
2024-05-21 22:16:20 +08:00
parent ff0e690b4a
commit 35349a8f9a
3 changed files with 145 additions and 28 deletions
+2
View File
@@ -90,6 +90,8 @@ func SetApiRouter(router *gin.Engine) {
channelRoute.DELETE("/:id", controller.DeleteChannel)
channelRoute.POST("/batch", controller.DeleteChannelBatch)
channelRoute.POST("/fix", controller.FixChannelsAbilities)
channelRoute.GET("/fetch_models/:id", controller.FetchUpstreamModels)
}
tokenRoute := apiRouter.Group("/token")
tokenRoute.Use(middleware.UserAuth())