diff options
| author | 2018-02-06 01:01:59 +0000 | |
|---|---|---|
| committer | 2018-02-06 01:01:59 +0000 | |
| commit | 1fed2a2cdcacd3bfcc0b69f7b1a1bb536c8e5268 (patch) | |
| tree | 6ec570b58a6652a7ac935c75b4296bcf5f4509b5 /pysite/views/healthcheck.py | |
| parent | flake8-todo too pedantic for us - hopefully travis didn't cache it (diff) | |
Revert "Finally fix this garbage"
This reverts commit 57abb43
Diffstat (limited to 'pysite/views/healthcheck.py')
| -rw-r--r-- | pysite/views/healthcheck.py | 15 |
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"}) |