add healthcheck route
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
cd68db8067
commit
887d9d0536
1
fly.toml
1
fly.toml
@ -8,6 +8,7 @@ primary_region = 'ord'
|
||||
vm.size = "l40s"
|
||||
|
||||
[build]
|
||||
image = "reg.xeiaso.net/xeserv/waifuwave:latest"
|
||||
|
||||
[http_service]
|
||||
internal_port = 8080
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user