feat: v2 - dodan /info endpoint

This commit is contained in:
2026-05-26 11:04:50 +02:00
parent 0bcacff727
commit e4f834b35f
2 changed files with 7 additions and 3 deletions

View File

@@ -4,8 +4,12 @@ app = FastAPI()
@app.get("/")
def root():
return {"message": "Pozdrav svijete!", "autor": "marijam1909"}
return {"message": "Pozdrav svijete! (v2)", "autor": "marijam1909"}
@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"}