Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Rate Limiter #8

Open
mirmahathir1 opened this issue May 6, 2022 · 0 comments
Open

Enable Rate Limiter #8

mirmahathir1 opened this issue May 6, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mirmahathir1
Copy link
Member

You must enable rate limiting to each of the routes.

  • For the POST request: 6 per minute
  • For the GET request: 6 per minute
  • For the DELETE request: 60 per minute

You may need to use the following package:
https://www.npmjs.com/package/express-rate-limit

Follow this example for more rate limiting
https://github.com/Badhan-BUET-Zone/badhan-backend/blob/master/src/routes/donors.js#L12

@mirmahathir1 mirmahathir1 added the enhancement New feature or request label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants