Files
manifesti/app/main.py
2026-05-02 21:50:54 +02:00

20 lines
335 B
Python

from fastapi import FastAPI
import platform
app = FastAPI()
@app.get("/")
def root():
return {"poruka": "Hello iz mog Docker containera v2!"}
@app.get("/info")
def info():
return {
"python": platform.python_version(),
"verzija": "2.0"
}
@app.get("/health")
def health():
return {"status": "ok"}