Skip to content

Commit

Permalink
GIT-37: add changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Harsha Narayana <[email protected]>
  • Loading branch information
harshanarayana committed Oct 26, 2019
1 parent e628107 commit 008e9e9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions changelogs/37.bugfix.rst
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

0 comments on commit 008e9e9

Please sign in to comment.