feat: v2 - dodan /info endpoint, update image tag 1.0 -> 2.0

This commit is contained in:
2026-06-08 17:10:23 +02:00
parent bb1d74cf85
commit ee8887747c
2 changed files with 7 additions and 3 deletions

View File

@@ -4,8 +4,12 @@ app = FastAPI()
@app.get("/")
def root():
return {"message": "Pozdrav svijete!", "autor": "VAŠ_KORISNIK"}
return {"message": "Pozdrav svijete! (v2)", "autor": "VAŠ_KORISNIK"}
@app.get("/health")
def health():
return {"status": "ok"}
return {"status": "ok", "version": "2.0"}
@app.get("/info")
def info():
return {"servis": "priprema-za-kolokvij", "verzija": "2.0"}

View File

@@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: priprema-za-kolokvij
image: git.fpmoz.sum.ba/ivanivso7/priprema-za-kolokvij:1.0
image: git.fpmoz.sum.ba/ivanivso7/priprema-za-kolokvij:2.0
ports:
- containerPort: 8000
resources: