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

This commit is contained in:
iva
2026-05-26 11:18:44 +02:00
parent cac54c27c6
commit 8c09b52ab7
2 changed files with 7 additions and 8 deletions

View File

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

View File

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