mirror of
https://github.com/gin-gonic/gin.git
synced 2025-06-10 02:49:29 +08:00
More aggressive rate limit
This commit is contained in:
@ -27,7 +27,7 @@ func StartGin() {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
|
||||
router := gin.New()
|
||||
router.Use(rateLimit, gin.Recovery(), gin.Logger())
|
||||
router.Use(rateLimit, gin.Recovery())
|
||||
router.LoadHTMLGlob("resources/*.templ.html")
|
||||
router.Static("/static", "resources/static")
|
||||
router.GET("/", index)
|
||||
|
Reference in New Issue
Block a user