How can I implement for some set of routers rather than using it for all the routes? #259
Answered
by
animir
geeky01adarsh
asked this question in
Q&A
-
I have a backend that serves many routes for different purposes, and not every request from there requires a rate limiter. I want to implement a |
Beta Was this translation helpful? Give feedback.
Answered by
animir
Feb 14, 2024
Replies: 1 comment 3 replies
-
@geeky01adarsh HI, You can find an example here on Wiki https://github.com/animir/node-rate-limiter-flexible/wiki/Overall-example#different-limits-for-different-parts-of-application |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should create two or more limiters and use them on your router class depending on route.