summaryrefslogtreecommitdiff
path: root/webui/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'webui/main.py')
-rw-r--r--webui/main.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/webui/main.py b/webui/main.py
new file mode 100644
index 0000000..c281aac
--- /dev/null
+++ b/webui/main.py
@@ -0,0 +1,12 @@
+from website import create_app
+from flask import render_template
+
+app = create_app()
+
+# Define the route for the custom 404 error
+@app.errorhandler(404)
+def page_not_found(e):
+ return render_template('404.html'), 404
+
+if __name__ == '__main__':
+ app.run(debug=True)