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 +