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

Global limit? #12

Closed
nocturn9x opened this issue Aug 30, 2020 · 3 comments
Closed

Global limit? #12

nocturn9x opened this issue Aug 30, 2020 · 3 comments

Comments

@nocturn9x
Copy link

Is it possible to define a "global" limit (still per-user) to apply to all handlers and then have more restrictive limits on a per-handler basis? If so, how?

@laurentS
Copy link
Owner

Yes, you can, look at this PR. I still have to merge it and do a new release, but it should help in the meantime.

@laurentS
Copy link
Owner

laurentS commented Oct 1, 2020

I've been slow at getting this new release out, but hopefully 0.1.2 does what you need? Let me know if not!

@laurentS
Copy link
Owner

Closing as this was fixed in 0.1.2 with the middleware. See https://slowapi.readthedocs.io/en/latest/examples/#apply-a-global-default-limit-to-all-routes for an example

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

No branches or pull requests

2 participants