from fastapi import FastAPI myapp = FastAPI() @myapp.get("/") def read_root(): return {"Hello": "World!"}