🎨 feat(channel): add endpoint to retrieve models by tag

This commit is contained in:
RedwindA
2025-06-08 01:16:27 +08:00
parent fcc4d0074f
commit b7c742166a
2 changed files with 42 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ func SetApiRouter(router *gin.Engine) {
channelRoute.GET("/fetch_models/:id", controller.FetchUpstreamModels)
channelRoute.POST("/fetch_models", controller.FetchModels)
channelRoute.POST("/batch/tag", controller.BatchSetChannelTag)
channelRoute.GET("/tag/models", controller.GetTagModels)
}
tokenRoute := apiRouter.Group("/token")
tokenRoute.Use(middleware.UserAuth())