15 lines
250 B
Python
15 lines
250 B
Python
import os
|
|
from fastapi import FastAPI
|
|
|
|
app = FastAPI()
|
|
|
|
AUTOR = os.getenv("dinkoglc", "nepoznat")
|
|
|
|
@app.get("/")
|
|
def root():
|
|
return {"message": "Kolokvij 2", "autor": "dinkoglc"}
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {"status": "ok"}
|