Merge pull request #844 from sfermigier/patch-1

Add missing code block qualifier
This commit is contained in:
Raphael Deem 2017-07-10 15:26:57 -07:00 committed by GitHub
commit b755431b93

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'