This commit is contained in:
2026-05-02 21:34:00 +02:00
parent b1316d1363
commit eeb91b8ff6
4 changed files with 35 additions and 0 deletions

19
app/main.py Normal file
View File

@@ -0,0 +1,19 @@
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"}