From 430f0d22e404f116bb84656fe5759969daa27405 Mon Sep 17 00:00:00 2001 From: Leonarda Prusina Date: Thu, 30 Apr 2026 22:55:12 +0200 Subject: [PATCH] main.py --- app/main.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/main.py b/app/main.py index b192387..6a9607d 100644 --- a/app/main.py +++ b/app/main.py @@ -11,18 +11,12 @@ def root(): return {"message": "Pozdrav svijete"} -# 🔥 HEALTH CHECK (BITNO: HTTP STATUS se mijenja) @app.get("/health") def health(): if not _healthy: - return JSONResponse( - status_code=500, - content={"status": "unhealthy"} - ) + return JSONResponse(status_code=500, content={"status": "unhealthy"}) return {"status": "ok"} - -# 🔥 BREAK ENDPOINT (simulira kvar) @app.post("/break") def break_health(): global _healthy