dodati aplikaciju, yaml

This commit is contained in:
nikolahrkac
2026-06-09 10:22:15 +02:00
parent d422e6d907
commit c570bcaa21
7 changed files with 105 additions and 0 deletions

14
app/main.py Normal file
View File

@@ -0,0 +1,14 @@
import os
from fastapi import FastAPI
app = FastAPI()
AUTOR = os.getenv("AUTOR", "nikolahrkac")
@app.get("/")
def root():
return {"message": "Kolokvij 2", "autor": AUTOR}
@app.get("/health")
def health():
return {"status": "ok"}