mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
Updated
This commit is contained in:
parent
1a0d85cc6c
commit
19dcd4fd02
@ -114,12 +114,17 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
// 2 requests in 5 seconds
|
// 2 requests in 5 seconds
|
||||||
routes: [
|
routes: [
|
||||||
'/api/login/',
|
'/api/login',
|
||||||
'/api/register'
|
'/api/register'
|
||||||
],
|
],
|
||||||
config: {
|
config: {
|
||||||
windowMs: 5 * 1000,
|
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