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

This commit is contained in:
2026-05-26 11:05:55 +02:00
parent 878fa602f7
commit 9934a1f2d6
2 changed files with 8 additions and 3 deletions

View File

@@ -1,10 +1,15 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"message": "Pozdrav svijete!", "autor": "vucicj"}
return {"message": "Pozdrav svijete! (v2)", "autor": "vucicj"}
@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"}