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

This commit is contained in:
fsusak03
2026-05-26 11:02:51 +02:00
parent e210a7f35e
commit ee7df5f1a8
2 changed files with 8 additions and 3 deletions

View File

@@ -5,9 +5,14 @@ app = FastAPI()
@app.get("/")
def root():
return {"message": "Pozdrav svijete!", "autor": "fsusak03"}
return {"message": "Pozdrav svijete! (v2)", "autor": "fsusak03"}
@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

@@ -17,7 +17,7 @@ spec:
- name: gitea-registry-secret
containers:
- name: priprema-za-kolokvij
image: git.fpmoz.sum.ba/fsusak03/priprema-za-kolokvij:1.0
image: git.fpmoz.sum.ba/fsusak03/priprema-za-kolokvij:2.0
ports:
- containerPort: 8000
resources: