Update api.js

This commit is contained in:
xfarrow 2024-02-14 18:00:04 +01:00
parent aaf2fddee3
commit c8ac93d4dc
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ app.use(cors()); // Enable CORS for all routes
app.use(rateLimit({ app.use(rateLimit({
windowMs: process.env.LIMITER_WINDOW, windowMs: process.env.LIMITER_WINDOW,
max: process.env.LIMITER_MAXIMUM_PER_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 })); // Apply the rate limiter middleware to all routes
app.post('/api/register', api_controller.registerPerson); // Register a Person app.post('/api/register', api_controller.registerPerson); // Register a Person