Merge pull request #94 from narzeja/bugfix_missing_req_bp_doc
Simple blueprint was missing the 'request' parameter
This commit is contained in:
commit
c80abb8cad
|
@ -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'})
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user