File size: 253 Bytes
2eeded6
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles

app = FastAPI()

# Mount the current directory as static files
# html=True allows serving index.html at root /
app.mount("/", StaticFiles(directory=".", html=True), name="static")