Simple blueprint was missing the 'request' parameter
This commit is contained in:
parent
b74d312c57
commit
113047d450
|
@ -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'})
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user