Merge pull request #889 from dongweiming/doc

Fix blueprint doc
This commit is contained in:
Raphael Deem 2017-08-16 00:19:58 -07:00 committed by GitHub
commit 0dbde7400f

View File

@ -172,7 +172,7 @@ takes the format `<blueprint_name>.<handler_name>`. For example:
```python
@blueprint_v1.route('/')
async def root(request):
url = app.url_for('v1.post_handler', post_id=5) # --> '/v1/post/5'
url = request.app.url_for('v1.post_handler', post_id=5) # --> '/v1/post/5'
return redirect(url)