mirror of
https://github.com/songquanpeng/one-api.git
synced 2026-04-07 02:44:25 +08:00
Merge 204f2ae0c6 into 7c8628bd95
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func SetApiRouter(router *gin.Engine) {
|
||||
func SetApiRouter(router *gin.RouterGroup) {
|
||||
apiRouter := router.Group("/api")
|
||||
apiRouter.Use(gzip.Gzip(gzip.DefaultCompression))
|
||||
apiRouter.Use(middleware.GlobalAPIRateLimit())
|
||||
|
||||
Reference in New Issue
Block a user