From 19dcd4fd029163a0b67aaecef06baddf42138db4 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Mon, 9 Sep 2019 01:27:14 +0700 Subject: [PATCH] Updated --- config.sample.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config.sample.js b/config.sample.js index 0801679..08dfbab 100644 --- a/config.sample.js +++ b/config.sample.js @@ -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.' + } } }, {