From 4a30205c7c2ca5dee773bc41f0cce448c98ad72f Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Thu, 11 May 2023 02:18:29 +0530 Subject: webui: flask dump --- webui/website/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 webui/website/__init__.py (limited to 'webui/website/__init__.py') diff --git a/webui/website/__init__.py b/webui/website/__init__.py new file mode 100644 index 0000000..4ca4c4b --- /dev/null +++ b/webui/website/__init__.py @@ -0,0 +1,13 @@ +from flask import Flask + +def create_app(): + app = Flask(__name__) + app.config['SECRET_KEY'] = 'fdbcawejhfbwef' + + from .views import views + from .auth import auth + + app.register_blueprint(views, url_prefix='/') + app.register_blueprint(auth, url_prefix='/') + + return app \ No newline at end of file -- cgit v1.2.3