查询余额接口支持跨域请求 (#61)

* 查询余额接口支持跨域请求
* 改正智谱倍率
This commit is contained in:
moondie
2024-02-02 12:18:26 +08:00
committed by GitHub
parent 48f9ed29e8
commit 6f3b8ed997
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import (
)
func SetDashboardRouter(router *gin.Engine) {
router.Use(middleware.CORS())
apiRouter := router.Group("/")
apiRouter.Use(gzip.Gzip(gzip.DefaultCompression))
apiRouter.Use(middleware.GlobalAPIRateLimit())