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

Limit on base url and ignore parameter. #227

Open
bert2002 opened this issue Dec 1, 2024 · 1 comment
Open

Limit on base url and ignore parameter. #227

bert2002 opened this issue Dec 1, 2024 · 1 comment

Comments

@bert2002
Copy link

bert2002 commented Dec 1, 2024

At the moment I have a implantation with Fastapi that limits on the following endpoint:

@app.get("/v1/endpoint/{parameter}")
@limiter.limit("60/minute")

This is generation limits for varous endpoints, like:

/v1/endpoint/a
/v1/endpoint/b
/v1/endpoint/c

I want the limit to apply for /v1/endpoint/* though. Even with global enforcement it will not.
I can identify users with an get request, could that work as identifier?

Thanks,
bert

@weazy0
Copy link

weazy0 commented Jan 2, 2025

crazy

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