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

This commit is contained in:
bubu
2024-05-21 22:16:20 +08:00
parent 6fe643b1c1
commit e2663a5c66
3 changed files with 145 additions and 28 deletions

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