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

Why middleware applied at blueprint level applies to whole application ? #2090

Open
therougeb opened this issue Jan 27, 2024 · 0 comments
Open

Comments

@therougeb
Copy link

Hello,

When I'm declaring a middleware with: my_blueprint.register_middleware(func_middleware),
I've found that the middleware applies to the application, not only the blueprint.

So i've searched on the github repo and see that actually when we use blueprint.register_middleware it seems to cal the same method on app level,

I found this strange as if we use blueprint, technically we also need to defined resources / middlewares only at blueprints level.

Should such a feature (to have blueprint scoped middlewares) may be introduced to chalice ?

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

1 participant