feat: added rate limit config
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { rateLimit } from "express-rate-limit";
|
||||
|
||||
export const ratelimit = rateLimit({
|
||||
windowMs: 10 * 60 * 1000,
|
||||
max: 100,
|
||||
legacyHeaders: false,
|
||||
standardHeaders: true,
|
||||
message: "Too many API requests, try again later",
|
||||
});
|
||||
Reference in New Issue
Block a user