Refactor: Suffixe in helpers/

This commit is contained in:
MasterAcnolo
2026-03-18 09:13:47 +01:00
parent 1c27cc19cf
commit da393b19d9
13 changed files with 19 additions and 19 deletions

View File

@@ -0,0 +1,14 @@
const RateLimit = require("express-rate-limit");
/* Rate Limite */
const rateLimite = RateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
max: 5, // limit each IP to 100 requests per windowMs on the root path
message: "Too many requests, please try again later.",
statusCode: 429, // HTTP status code for "Too Many Requests"
});
module.exports = {
rateLimite
}