feat: v2
This commit is contained in:
10
app/main.py
10
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"}
|
||||
return {"status": "ok", "version": "2.0"}
|
||||
|
||||
@app.get("/info")
|
||||
def info():
|
||||
return {"servis": "priprema-za-kolokvij", "verzija": "2.0"}
|
||||
Reference in New Issue
Block a user