From f4e4a95848c61f77ac0dea4daa9489c64ef30f3a Mon Sep 17 00:00:00 2001 From: DinkoGalic Date: Fri, 5 Jun 2026 19:56:02 +0200 Subject: [PATCH] feat: v2 --- app/main.py | 10 +++++++--- k8s/deployment.yaml | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/main.py b/app/main.py index a7ca6b2..01876ff 100644 --- a/app/main.py +++ b/app/main.py @@ -4,8 +4,12 @@ app = FastAPI() @app.get("/") def root(): - return {"message": "Pozdrav svijete.", "autor": "Dinko Galić"} + return {"message": "Pozdrav svijete! (v2)", "autor": "Dinko Galic"} -@ap.get("/health") +@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 073c0cd..493d76d 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/dinkoglc/priprema-za-kolokvij:1.0 + image: git.fpmoz.sum.ba/dinkoglc/priprema-za-kolokvij:2.0 ports: - containerPort: 8000 resources: