1 2 3 4 5 6 7 8 9 10 11 12 13
from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"message": "hello from fastapi-dev, routed through stack"} @app.get("/health") def health(): return {"status": "ok"}