fileresponse

How to load a different file than index.html in FastAPI root path?

How to load a different file than index.html in FastAPI root path? Question: Here is a simple static FastAPI app. With this setup even though the root path is expected to return a FileResponse of custom.html, the app still returns index.html. How can I get the root path work and render custom.html? from fastapi import …

Total answers: 1