mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
beautified
This commit is contained in:
@ -38,7 +38,9 @@ app.use(cors()); // Enable CORS for all routes
|
||||
app.use(rateLimit({
|
||||
windowMs: process.env.LIMITER_WINDOW,
|
||||
max: process.env.LIMITER_MAXIMUM_PER_WINDOW,
|
||||
message: { error: '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
|
||||
|
||||
/*
|
||||
@ -72,4 +74,4 @@ if (process.argv[2] != 'testing') {
|
||||
}
|
||||
|
||||
// Export the app for testing purposes
|
||||
module.exports = app;
|
||||
module.exports = app;
|
Reference in New Issue
Block a user