diff options
| author | Ritesh Ghosh <[email protected]> | 2023-09-10 19:36:34 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-09-10 19:36:34 +0530 |
| commit | 6ebee632d7e894b31f7e1fc8aece4b9e8456542a (patch) | |
| tree | 1c7da0292b7b688803b36401be6ec2c18aa6a347 | |
| parent | c724c70dceac3901b2c870dfba700baf6dca93b4 (diff) | |
| download | aniwatch-api-6ebee632d7e894b31f7e1fc8aece4b9e8456542a.tar.xz aniwatch-api-6ebee632d7e894b31f7e1fc8aece4b9e8456542a.zip | |
feat: updated `ratelimit` config
| -rw-r--r-- | src/config/ratelimit.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ratelimit.ts b/src/config/ratelimit.ts index 11f02a4..bc05f37 100644 --- a/src/config/ratelimit.ts +++ b/src/config/ratelimit.ts @@ -1,8 +1,8 @@ import { rateLimit } from "express-rate-limit"; export const ratelimit = rateLimit({ - windowMs: 10 * 60 * 1000, - max: 100, + windowMs: 60 * 1000, + max: 10, legacyHeaders: false, standardHeaders: true, message: "Too many API requests, try again later", |
