Add missing code block qualifier

This commit is contained in:
Stefane Fermigier 2017-07-10 22:11:12 +02:00 committed by GitHub
parent 7841274300
commit 04ff393875

View File

@ -169,7 +169,7 @@ app.run(host='0.0.0.0', port=8000, debug=True)
If you wish to generate a URL for a route inside of a blueprint, remember that the endpoint name If you wish to generate a URL for a route inside of a blueprint, remember that the endpoint name
takes the format `<blueprint_name>.<handler_name>`. For example: takes the format `<blueprint_name>.<handler_name>`. For example:
``` ```python
@blueprint_v1.route('/') @blueprint_v1.route('/')
async def root(request): async def root(request):
url = app.url_for('v1.post_handler', post_id=5) # --> '/v1/post/5' url = app.url_for('v1.post_handler', post_id=5) # --> '/v1/post/5'