diff --git a/app/main.py b/app/main.py index 02e6bd4..1d4ae3b 100644 --- a/app/main.py +++ b/app/main.py @@ -4,8 +4,12 @@ app = FastAPI() @app.get("/") def root(): - return {"message": "Pozdrav svijete!", "autor": "galicivan"} + return {"message": "Pozdrav svijete! (v2)", "autor": "GalicIvan"} @app.get("/health") def health(): - return {"status": "ok"} \ No newline at end of file + return {"status": "ok", "version": "2.0"} + +@app.get("/info") +def info(): + return {"servis": "priprema-za-kolokvij", "verzija": "2.0"} \ No newline at end of file diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 9096a8f..51f5acf 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/galicivan/priprema-za-kolokvij:1.0 + image: git.fpmoz.sum.ba/galicivan/priprema-za-kolokvij:2.0 ports: - containerPort: 8000 resources: