From 6ea5a4719a82beb531e5ccb79f1fa5a186c98d83 Mon Sep 17 00:00:00 2001 From: Suby Raman Date: Thu, 16 Feb 2017 11:48:31 -0500 Subject: [PATCH] add url_for doc in blueprint --- docs/sanic/blueprints.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/sanic/blueprints.md b/docs/sanic/blueprints.md index 5a3da7ec..cfeb58c7 100644 --- a/docs/sanic/blueprints.md +++ b/docs/sanic/blueprints.md @@ -167,8 +167,7 @@ takes the format `.`. 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)