add healthcheck route

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2025-01-14 13:57:09 -05:00
parent cd68db8067
commit 887d9d0536
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@ primary_region = 'ord'
vm.size = "l40s"
[build]
image = "reg.xeiaso.net/xeserv/waifuwave:latest"
[http_service]
internal_port = 8080

View File

@ -273,6 +273,11 @@ def read_root():
return jsonify({"Hello": "World"})
@app.route("/health-check", methods=["GET"])
def health_check():
return jsonify({"status": "READY"})
@app.route("/generate", methods=["POST"])
def generate():
content_type = request.headers.get('Content-Type')