aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/app.py b/app.py
index 9e9cdc4e..3c3cc828 100644
--- a/app.py
+++ b/app.py
@@ -5,6 +5,7 @@ import os
# Snekchek
from flask import Flask
+from flask import jsonify
app = Flask(__name__)
@@ -16,5 +17,15 @@ def _index():
return "Robots are taking over"
[email protected]("/healthcheck")
+def healthcheck():
+ return jsonify({"status":"ok"})
+
+
+def page_not_found(e):
+ return "replace me with a template, 404 not found", 404
+
+
if __name__ == '__main__':
app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False)