Setup different ratelimit for views and votes

This commit is contained in:
Ajay Ramachandran
2020-10-11 13:07:57 -04:00
parent 73b7332639
commit a5f5f72346
4 changed files with 38 additions and 18 deletions

View File

@@ -27,7 +27,13 @@
"vote": {
"windowMs": 900000, // 15 minutes
"max": 20, // 20 requests in 15min time window
"message": "Too many votes, please try again later"
"message": "Too many votes, please try again later",
"statusCode": 200
},
"view": {
"windowMs": 900000, // 15 minutes
"max": 20, // 20 requests in 15min time window
"statusCode": 200
}
}
}