create app
This commit is contained in:
parent
4ff2a93cb9
commit
71f2f6d656
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ def create_app():
|
|||
app.register_blueprint(routes)
|
||||
return app
|
||||
|
||||
app = create_app()
|
||||
|
||||
@app.errorhandler(403)
|
||||
def not_authorised(e):
|
||||
|
@ -17,3 +18,4 @@ def not_authorised(e):
|
|||
@app.errorhandler(500)
|
||||
def internal_server_error(e):
|
||||
return jsonify(error="Internal server error"), 500
|
||||
|
||||
|
|
Loading…
Reference in a new issue