15 lines
No EOL
315 B
JavaScript
15 lines
No EOL
315 B
JavaScript
const rateLimit = (options) => {
|
|
return (req, res, next) => {
|
|
// Simple rate limiter for demonstration
|
|
next();
|
|
};
|
|
};
|
|
|
|
const authRateLimit = (options) => {
|
|
return (req, res, next) => {
|
|
// Simple auth rate limiter for demonstration
|
|
next();
|
|
};
|
|
};
|
|
|
|
module.exports = { rateLimit, authRateLimit }; |