You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In v22.9 the priority feature was added, but unfortunately it appears it was overlooked and there is priority parameter to register_middleware() for Sanic.
I am looking to use this feature because I have a Blueprint-specific middleware which appears to run before the application-wide middleware. In my case the application-wide middleware does authorization and updates request.ctx which is then used in the Blueprint-specific middleware.
Is there an existing issue for this?
I have searched the existing issues
Environment
Sanic (22.9.1; Routing 22.8.0) is ran on Windows using ASGI.
The text was updated successfully, but these errors were encountered:
Description
In v22.9 the priority feature was added, but unfortunately it appears it was overlooked and there is priority parameter to
register_middleware()
forSanic
.I am looking to use this feature because I have a Blueprint-specific middleware which appears to run before the application-wide middleware. In my case the application-wide middleware does authorization and updates
request.ctx
which is then used in the Blueprint-specific middleware.Is there an existing issue for this?
Environment
Sanic (22.9.1; Routing 22.8.0) is ran on Windows using ASGI.
The text was updated successfully, but these errors were encountered: