From c8ac93d4dc1b8047463ef397c222aa5e223768cc Mon Sep 17 00:00:00 2001 From: xfarrow Date: Wed, 14 Feb 2024 18:00:04 +0100 Subject: [PATCH] Update api.js --- backend/apis/nodejs/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apis/nodejs/api.js b/backend/apis/nodejs/api.js index 9d468f0..f604e65 100644 --- a/backend/apis/nodejs/api.js +++ b/backend/apis/nodejs/api.js @@ -25,7 +25,7 @@ app.use(cors()); // Enable CORS for all routes app.use(rateLimit({ windowMs: process.env.LIMITER_WINDOW, max: process.env.LIMITER_MAXIMUM_PER_WINDOW, - message: 'Too many requests from this IP, please try again later' + message: {error : "Too many requests from this IP, please try again later"} })); // Apply the rate limiter middleware to all routes app.post('/api/register', api_controller.registerPerson); // Register a Person