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