add healthcheck

This commit is contained in:
daniel
2023-04-23 23:54:42 +02:00
parent e76bf2fd7b
commit 24465e9954

4
app.py
View File

@@ -19,6 +19,10 @@ def get_format(req, fallback=("application/json", "json")):
else:
return fallback
@app.route('/', methods=["GET"])
def healthcheck():
return "OK", 200
@app.route('/analyze', methods=["POST"])
def analyze():