ycdemo / fastapi / docs_src/ frontend/ tutorial001_py310.py

from fastapi import FastAPI

app = FastAPI()

app.frontend("/", directory="dist")