mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-22 12:33:42 +00:00
changes request
This commit is contained in:
parent
7600e28cb9
commit
3df5ebbed6
@ -36,7 +36,9 @@ app.Use(limiter.New(limiter.Config{
|
||||
},
|
||||
Max: 20,
|
||||
Duration: 30 * time.Second,
|
||||
KeyGenerator: func(c *fiber.Ctx) string,
|
||||
KeyGenerator: func(c *fiber.Ctx) string{
|
||||
return "key"
|
||||
}
|
||||
LimitReached: func(c *fiber.Ctx) error {
|
||||
return c.SendFile("./toofast.html")
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user