fdirst commit
This commit is contained in:
14
app/main.py
Normal file
14
app/main.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
AUTOR = os.getenv("AUTOR", "nepoznat")
|
||||
|
||||
@app.get("/")
|
||||
def root():
|
||||
return {"message": "Kolokvij 2", "autor": AUTOR}
|
||||
|
||||
@app.get("/health")
|
||||
def health():
|
||||
return {"status": "ok"}
|
||||
Reference in New Issue
Block a user