from fastapi.responses import FileResponse @app.get("/") async def read_index(): return FileResponse("index.html")