mirror of
https://github.com/songquanpeng/one-api.git
synced 2026-02-04 05:05:57 +08:00
Merge 204f2ae0c6 into 99c8c77504
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