diff --git a/app/main.py b/app/main.py index ed60b2b..cc14be8 100644 --- a/app/main.py +++ b/app/main.py @@ -4,8 +4,12 @@ app = FastAPI() @app.get("/") def root(): - return {"message": "Pozdrav svijete!", "autor": "Vinko004"} + return {"message": "Pozdrav svijete! (v2)", "autor": "Vinko004"} @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 c786802..0df41bf 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -17,7 +17,7 @@ spec: - name: gitea-registry-secret containers: - name: priprema-za-kolokvij - image: git.fpmoz.sum.ba/vinko004/priprema-za-kolokvij:1.0 + image: git.fpmoz.sum.ba/vinko004/priprema-za-kolokvij:2.0 ports: - containerPort: 8000 resources: