diff options
author | 2018-02-09 12:19:55 +0000 | |
---|---|---|
committer | 2018-02-09 12:19:55 +0000 | |
commit | b38a9f56e54eb21eec37f40075399961ba82906f (patch) | |
tree | 3255dc43a11734726509a1ed79d7dfa1da02cb63 /pysite/views/api/healthcheck.py | |
parent | Weird, PyCharm didn't commit all my changes last push (diff) |
Move from straight app registration to Blueprints (#6)
Diffstat (limited to 'pysite/views/api/healthcheck.py')
-rw-r--r-- | pysite/views/api/healthcheck.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pysite/views/api/healthcheck.py b/pysite/views/api/healthcheck.py new file mode 100644 index 00000000..9d1f681a --- /dev/null +++ b/pysite/views/api/healthcheck.py @@ -0,0 +1,12 @@ +# coding=utf-8 +from flask import jsonify + +from pysite.base_route import RouteView + + +class IndexView(RouteView): + path = "/healthcheck" + name = "healthcheck" + + def get(self): + return jsonify({"status": "ok"}) |