Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 6e01406

Browse files
committed
Add rate limiting middleware to enhance API security
- Integrated express-rate-limit to limit requests to 100 per 15 minutes - This helps mitigate potential DDoS attacks and abuse of the API
1 parent 3319cc0 commit 6e01406

3 files changed

Lines changed: 27 additions & 5495 deletions

File tree

package-lock.json

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"dotenv": "^16.5.0",
2828
"ejs": "^3.1.10",
2929
"express": "^4.21.2",
30+
"express-rate-limit": "^8.1.0",
3031
"express-session": "^1.18.2",
3132
"inversify": "^6.2.2",
3233
"inversify-express-utils": "^6.5.0",

0 commit comments

Comments
 (0)