Merge pull request #94 from narzeja/bugfix_missing_req_bp_doc

Simple blueprint was missing the 'request' parameter
This commit is contained in:
Channel Cat 2016-10-22 02:54:21 -07:00 committed by GitHub
commit c80abb8cad

View File

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