Replies: 1 comment
-
I'd say A custom Middleware should do the job. If you want to customize the condition, maybe a custom Model could help. APIUserid So whenever a call is made, your middleware +1s the apiCalls property for that user and if it exceeds your limit, you block the call by throwing an exception |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was wondering if there's a way to rate limit API in Adonis V5? Any community packages or code snippets to point the way would be of great help.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions