use blueprint method instead of deprecated register_blueprint

This commit is contained in:
Jing Su 2017-03-09 18:31:19 +08:00
parent 7f1e0557c9
commit 489ca3c207
No known key found for this signature in database
GPG Key ID: D267EFAA88310899

View File

@ -18,7 +18,7 @@ async def foo2(request):
return json({'msg': 'hi from blueprint2'})
app.register_blueprint(blueprint)
app.register_blueprint(blueprint2)
app.blueprint(blueprint)
app.blueprint(blueprint2)
app.run(host="0.0.0.0", port=8000, debug=True)