Simple blueprint was missing the 'request' parameter

This commit is contained in:
narzeja 2016-10-22 07:13:14 +02:00
parent b74d312c57
commit 113047d450

View File

@ -29,7 +29,7 @@ from sanic import Blueprint
bp = Blueprint('my_blueprint') bp = Blueprint('my_blueprint')
@bp.route('/') @bp.route('/')
async def bp_root(): async def bp_root(request):
return json({'my': 'blueprint'}) return json({'my': 'blueprint'})
``` ```