Closed jericopulvera closed 6 years ago
Hi @jericopulvera,
I currently generate a signature for each route like so request method + path + user IP. https://github.com/masasron/adonis-throttle/blob/master/middleware/ThrottleRequests.js#L71
You can overwrite this value when by using the Throttle
object directly.
https://github.com/masasron/adonis-throttle#advance
I would just create a new middleware that removes the request method from the signature.
Hi. I have this 2 route but I want the request record on them to be the same.
What's currently happening is that when I like a product and reach the throttle limit, I would still be able to, unlike the product.
What I want to happen is that when Liking throttle limit is reached it should be the same with unlike.
Like this.
How do I achieve this?