feat: Optimize model list.

This commit is contained in:
MartialBE
2024-01-01 14:36:58 +08:00
committed by Buer
parent bf5ba315ee
commit 7ef4a7db59
9 changed files with 327 additions and 138 deletions

View File

@@ -42,6 +42,7 @@ func SetApiRouter(router *gin.Engine) {
selfRoute.GET("/token", controller.GenerateAccessToken)
selfRoute.GET("/aff", controller.GetAffCode)
selfRoute.POST("/topup", controller.TopUp)
selfRoute.GET("/models", controller.ListModels)
}
adminRoute := userRoute.Group("/")