Add /api/healthcheck
This commit is contained in:
parent
e3a03020fe
commit
0a9f1e2029
1 changed files with 5 additions and 0 deletions
|
|
@ -295,6 +295,11 @@ def get_app(args: argparse.Namespace, request_queue: Queue, temp_dir: str):
|
||||||
|
|
||||||
return Response(wav_bytes, mimetype="audio/wav")
|
return Response(wav_bytes, mimetype="audio/wav")
|
||||||
|
|
||||||
|
@app.route("/api/healthcheck", methods=["GET"])
|
||||||
|
async def api_healthcheck():
|
||||||
|
"""Endpoint to check health status"""
|
||||||
|
return "OK"
|
||||||
|
|
||||||
# Swagger UI
|
# Swagger UI
|
||||||
show_openapi = not args.no_show_openapi
|
show_openapi = not args.no_show_openapi
|
||||||
if show_openapi:
|
if show_openapi:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue