This repository has been archived on 2026-07-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aniwatch-api/src/config/ratelimit.ts
T
2023-08-07 20:42:17 +05:30

10 lines
232 B
TypeScript

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",
});