Correcting blueprint documentation

issue 
This commit is contained in:
Channel Cat 2016-10-16 14:28:42 -07:00 committed by GitHub
parent 73ef816d89
commit 0c28cdbaf4

@ -56,9 +56,7 @@ In this example, the registered routes in the `app.router` will look like:
``` ```
## Middleware ## Middleware
Using blueprints allows you to also register middleware exclusively for that Using blueprints allows you to also register middleware globally.
blueprint, without interfering with other blueprints or routes registered
directly on the application object.
```python ```python
@bp.middleware @bp.middleware
@ -75,8 +73,7 @@ async def halt_response(request, response):
``` ```
## Exceptions ## Exceptions
Exceptions can also be applied exclusively to blueprints without interfering Exceptions can also be applied exclusively to blueprints globally.
with other blueprints or routes registered on the application object.
```python ```python
@bp.exception(NotFound) @bp.exception(NotFound)