chore: bump request limit

This commit is contained in:
Reinaldy Rafli 2021-07-19 17:22:22 +07:00
parent 2830a483be
commit 0ed396b78d
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ func main() {
}) })
app.Use(limiter.New(limiter.Config{ app.Use(limiter.New(limiter.Config{
Max: 15, Max: 30,
Expiration: 1 * time.Minute, Expiration: 1 * time.Minute,
LimitReached: limitHandler, LimitReached: limitHandler,
})) }))

View File

@ -71,7 +71,7 @@
} }
}, },
"api": { "api": {
"limit": "We limit the request to be 15 request/minute.", "limit": "We limit the request to be 30 request/minute.",
"get": { "get": {
"title": "Get Jokes", "title": "Get Jokes",
"random": { "random": {

View File

@ -71,7 +71,7 @@
} }
}, },
"api": { "api": {
"limit": "Kami membatasi request menjadi 15 request/menit.", "limit": "Kami membatasi request menjadi 30 request/menit.",
"get": { "get": {
"title": "Dapatkan Jokes", "title": "Dapatkan Jokes",
"random": { "random": {