aboutsummaryrefslogtreecommitdiffstats
path: root/backend/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/app.py')
-rw-r--r--backend/app.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/backend/app.py b/backend/app.py
new file mode 100644
index 0000000..51b0dbb
--- /dev/null
+++ b/backend/app.py
@@ -0,0 +1,22 @@
+"""
+Flask app for serving the static files
+"""
+from flask import Flask, send_file, send_from_directory, jsonify, abort
+from flask_cors import CORS
+
+app = Flask(__name__)
+CORS(app)
+
+
+@app.route('/')
+def main_page():
+ return "We are offline at the moment"
+
+
+@app.errorhandler(404)
+def not_found(error):
+ return jsonify(error=str(error)), 404
+
+
+if __name__ == "__main__":
+ app.run(debug=True)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage