Skip to content

feat: add rate limiting middleware to /api/v1/ routes#37

Merged
AlAfiz merged 1 commit intoBETAIL-BOYS:mainfrom
LaGodxy:feature/rate-limiter
Feb 25, 2026
Merged

feat: add rate limiting middleware to /api/v1/ routes#37
AlAfiz merged 1 commit intoBETAIL-BOYS:mainfrom
LaGodxy:feature/rate-limiter

Conversation

@LaGodxy
Copy link
Contributor

@LaGodxy LaGodxy commented Feb 25, 2026

Description
To protect our API from getting overwhelmed or spammed by bots, we need to implement a basic rate limiter on our main endpoints.

Requirements mets:

Install the express-rate-limit package.

Create a middleware configuration that limits each IP to 100 requests per 15 minutes.

Apply this middleware globally to all /api/v1/ routes.

Ensure the API returns a 429 Too Many Requests status when the limit is hit.

closes #33

@AlAfiz AlAfiz merged commit 367d691 into BETAIL-BOYS:main Feb 25, 2026
1 check failed
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: Implement API rate limiting to prevent spam

2 participants