1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-22 12:33:42 +00:00

changes request

This commit is contained in:
João Vitor 2020-11-16 21:01:20 -03:00 committed by GitHub
parent 7600e28cb9
commit 3df5ebbed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
},