Files
hello-cicd/main.py
Ivan Filipovic d5f64d827b
All checks were successful
CI/CD Pipeline / build (push) Successful in 1m52s
CI/CD Pipeline / deploy (push) Successful in 1m27s
feat: verzija v2.0
2026-04-20 23:25:55 +02:00

18 lines
360 B
Python

# main.py
from fastapi import FastAPI
import os, datetime
app = FastAPI()
@app.get("/health")
def health():
return {
"status": "ok",
"version": os.getenv("APP_VERSION", "dev"),
"timestamp": datetime.datetime.utcnow().isoformat()
}
@app.get("/")
def root():
return {"poruka": "Zdravo s k3s!", "host": os.uname().nodename}