Skip to content

Commit 4e73ce8

Browse files
committed
Add health check endpoint to main.py for service status verification
1 parent 796c561 commit 4e73ce8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def package_output(result: ConversionResult, output_dir: Path, base_name: str, i
6060
zipf.write(img_file, arcname=f"images/{img_file.name}")
6161
return zip_path
6262

63+
@app.get("/health")
64+
async def health():
65+
"""Health check endpoint"""
66+
return {"status": "healthy", "message": "Service is running"}
67+
6368
@app.post("/convert")
6469
async def convert(
6570
file: UploadFile = File(...),

0 commit comments

Comments
 (0)