aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/healthcheck.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/views/healthcheck.py')
-rw-r--r--pysite/views/healthcheck.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pysite/views/healthcheck.py b/pysite/views/healthcheck.py
new file mode 100644
index 00000000..660c8a96
--- /dev/null
+++ b/pysite/views/healthcheck.py
@@ -0,0 +1,15 @@
+# coding=utf-8
+from flask import jsonify
+
+from pysite.base_route import BaseView
+
+
+__author__ = "Gareth Coles"
+
+
+class IndexView(BaseView):
+ path = "/healthcheck"
+ name = "healthcheck"
+
+ def get(self):
+ return jsonify({"status": "ok"})