add url_for doc in blueprint

This commit is contained in:
Suby Raman 2017-02-16 11:48:31 -05:00
parent f8c50b7f1e
commit 6ea5a4719a

View File

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