Skip to content

feat(backend): add rate limiting middleware to prevent API abuse#317

Open
D-Ochuko wants to merge 3 commits into
Dev-AdeTutu:mainfrom
D-Ochuko:feat(backend)-add-rate-limiting-middleware-to-prevent-API-abuse
Open

feat(backend): add rate limiting middleware to prevent API abuse#317
D-Ochuko wants to merge 3 commits into
Dev-AdeTutu:mainfrom
D-Ochuko:feat(backend)-add-rate-limiting-middleware-to-prevent-API-abuse

Conversation

@D-Ochuko

@D-Ochuko D-Ochuko commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Closes #217

Global 60 reg/min limit on /api routes (env: RATE_LIMIT_WINDOW_MS, RATE_LIMIT_MAX). Stricter 10 req/min limit on /api/payments (env: PAYMENTS_RATE_LIMIT_MAX). 429 responses include Retry-After header; messgae configurable via RATE_LIMIT_MESSAGE. Install express-rate-limit.

@drips-wave

drips-wave Bot commented Jun 1, 2026

Copy link
Copy Markdown

@D-Ochuko Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(backend): add rate limiting middleware to prevent API abuse

1 participant