summaryrefslogtreecommitdiff
path: root/webui/website/__init__.py
diff options
context:
space:
mode:
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