From 71f2f6d656cdffae59d361c4c3615c4ddfb3d35b Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Sun, 19 Nov 2023 01:48:57 +0100 Subject: [PATCH] create app --- app/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/__init__.py b/app/__init__.py index 48e31a9..5d9f918 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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 +