add endpoint for health-checks
This commit is contained in:
@@ -6,7 +6,13 @@ mod = Blueprint('server', __name__)
|
|||||||
@mod.route("/", methods=["GET"])
|
@mod.route("/", methods=["GET"])
|
||||||
def status():
|
def status():
|
||||||
data = {
|
data = {
|
||||||
'version': '0.0.1',
|
'version': '0.0.1'
|
||||||
'status': 'ok'
|
|
||||||
}
|
}
|
||||||
return jsonify(data)
|
return jsonify(data)
|
||||||
|
|
||||||
|
@mod.route("/health", methods=["GET"])
|
||||||
|
def health():
|
||||||
|
data = {
|
||||||
|
'status': 'ok'
|
||||||
|
}
|
||||||
|
return jsonify(data)
|
||||||
Reference in New Issue
Block a user