add endpoint for health-checks
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user