-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Harsha Narayana <[email protected]>
- Loading branch information
1 parent
e628107
commit 008e9e9
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Fix blueprint middleware application | ||
|
||
Currently, any blueprint middleware registered, irrespective of which blueprint was used to do so, was | ||
being applied to all of the routes created by the :code:`@app` and :code:`@blueprint` alike. | ||
|
||
As part of this change, the blueprint based middleware application is enforced based on where they are | ||
registered. | ||
|
||
- If you register a middleware via :code:`@blueprint.middleware` then it will apply only to the routes defined by the blueprint. | ||
- If you register a middleware via :code:`@blueprint_group.middleware` then it will apply to all blueprint based routes that are part of the group. | ||
- If you define a middleware via :code:`@app.middleware` then it will be applied on all available routes |