create app

This commit is contained in:
Matthew Frost 2023-11-19 01:48:57 +01:00
parent 4ff2a93cb9
commit 71f2f6d656

View file

@ -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