Skip to content

Commit 1e5324f

Browse files
maxthomasvince62s
authored andcommitted
add health endpoint to server.py (#1471)
1 parent fe9051c commit 1e5324f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ def get_models():
2828
out = translation_server.list_models()
2929
return jsonify(out)
3030

31+
@app.route('/health', methods=['GET'])
32+
def health():
33+
out = {}
34+
out['status'] = STATUS_OK
35+
return jsonify(out)
36+
3137
@app.route('/clone_model/<int:model_id>', methods=['POST'])
3238
def clone_model(model_id):
3339
out = {}

0 commit comments

Comments
 (0)