From 0b630929fc7e8828f8aed8740896d07b43ff9db4 Mon Sep 17 00:00:00 2001 From: Leonarda Prusina Date: Fri, 1 May 2026 11:48:04 +0200 Subject: [PATCH] fix main.py --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 6a9607d..e8cca20 100644 --- a/app/main.py +++ b/app/main.py @@ -14,11 +14,11 @@ def root(): @app.get("/health") def health(): if not _healthy: - return JSONResponse(status_code=500, content={"status": "unhealthy"}) + return {"status": "unhealthy"}, 503 return {"status": "ok"} @app.post("/break") def break_health(): global _healthy _healthy = False - return {"message": "Servis je sada nezdrav — ocekuj restart"} \ No newline at end of file + return {"message": "Servis je sada nezdrav"} \ No newline at end of file