mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 09:21:32 +00:00
Updated
This commit is contained in:
parent
1a0d85cc6c
commit
19dcd4fd02
@ -114,12 +114,17 @@ module.exports = {
|
||||
{
|
||||
// 2 requests in 5 seconds
|
||||
routes: [
|
||||
'/api/login/',
|
||||
'/api/login',
|
||||
'/api/register'
|
||||
],
|
||||
config: {
|
||||
windowMs: 5 * 1000,
|
||||
max: 2
|
||||
max: 2,
|
||||
statusCode: 200,
|
||||
message: {
|
||||
success: false,
|
||||
description: 'Rate limit reached, please try again in a while.'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user