add endpoint for health-checks

This commit is contained in:
Martin
2016-11-11 15:44:23 +01:00
parent 4affc08eae
commit 6587a27cd2
+7 -1
View File
@@ -6,7 +6,13 @@ mod = Blueprint('server', __name__)
@mod.route("/", methods=["GET"])
def status():
data = {
'version': '0.0.1',
'version': '0.0.1'
}
return jsonify(data)
@mod.route("/health", methods=["GET"])
def health():
data = {
'status': 'ok'
}
return jsonify(data)