Spaces:
Running
Running
File size: 356 Bytes
208af4f 845d6a6 208af4f 4210dc2 845d6a6 208af4f |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.responses import RedirectResponse
app = FastAPI()
# Servir les fichiers statiques (HTML, CSS, JS)
app.mount("/static", StaticFiles(directory="static", html=True), name="static")
@app.get("/")
async def root():
return RedirectResponse(url="/static/principal.html") |