ycdemo / fastapi / docs_src/ first_steps/ tutorial001_py310.py

from fastapi import FastAPI

app = FastAPI()


@app.get("/")
async def root():
    return {"message": "Hello World"}