diff --git a/app/main.py b/app/main.py index 5f4680a..a59023e 100644 --- a/app/main.py +++ b/app/main.py @@ -4,8 +4,12 @@ app = FastAPI() @app.get("/") def root(): - return {"message": "Pozdrav svijete!", "autor": "petrraa"} + 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"} diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 504ee64..efd4b74 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: priprema-za-kolokvij - image: git.fpmoz.sum.ba/petrraa/priprema-za-kolokvij:1.0 + image: git.fpmoz.sum.ba/VAŠ_KORISNIK/priprema-za-kolokvij:2.0 ports: - containerPort: 8000 resources: