mirror of
https://github.com/dnlbauer/pdfact-service.git
synced 2026-09-10 14:15:30 +00:00
add healthcheck
This commit is contained in:
4
app.py
4
app.py
@@ -19,6 +19,10 @@ def get_format(req, fallback=("application/json", "json")):
|
|||||||
else:
|
else:
|
||||||
return fallback
|
return fallback
|
||||||
|
|
||||||
|
@app.route('/', methods=["GET"])
|
||||||
|
def healthcheck():
|
||||||
|
return "OK", 200
|
||||||
|
|
||||||
|
|
||||||
@app.route('/analyze', methods=["POST"])
|
@app.route('/analyze', methods=["POST"])
|
||||||
def analyze():
|
def analyze():
|
||||||
|
|||||||
Reference in New Issue
Block a user