add: liveness and readiness probes

This commit is contained in:
2026-04-30 20:43:11 +02:00
parent 78275ea481
commit e5ed302b4d
4 changed files with 27 additions and 0 deletions

11
app/main.py Normal file
View File

@@ -0,0 +1,11 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"message": "Pozdrav svijete"}
@app.get("/health")
def health():
return {"status": "ok"}