16 lines
299 B
Python
16 lines
299 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
@app.get("/")
|
|
def root():
|
|
return {"message": "Pozdrav svijete!", "autor": "VAŠ_KORISNIK"}
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {"status": "ok"}
|
|
|
|
@app.get("/info")
|
|
def info():
|
|
return {"servis": "priprema-za-kolokvij", "verzija": "2.0"}
|