init: helloo-cicdd project setup

This commit is contained in:
2026-04-14 10:27:37 +02:00
parent 659b0ba054
commit c420e48deb
6 changed files with 78 additions and 0 deletions

18
main.py Normal file
View File

@@ -0,0 +1,18 @@
# 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}