summaryrefslogtreecommitdiff
path: root/webui/website/__init__.py
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-05-11 02:18:29 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-05-11 02:18:29 +0530
commit4a30205c7c2ca5dee773bc41f0cce448c98ad72f (patch)
treea8413ccea2bf88fbc7e1001410ecb9e7e7e9d722 /webui/website/__init__.py
parentb7fb654b5257d8fc753b202c3639e94da7d1af20 (diff)
webui: flask dump
Diffstat (limited to 'webui/website/__init__.py')
-rw-r--r--webui/website/__init__.py13
1 files changed, 13 insertions, 0 deletions
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