ADD: rate limiting

This commit is contained in:
Overtorment
2019-03-21 21:45:22 +00:00
parent 995374ff48
commit 0f423817c3
2 changed files with 8 additions and 3 deletions

View File

@@ -57,7 +57,6 @@ const rateLimit = require('express-rate-limit');
const postLimiter = rateLimit({
windowMs: 30 * 60 * 1000,
max: 50,
message: 'You are going too fast',
});
router.post('/create', postLimiter, async function(req, res) {