☰
Debian Codegraph
@
0.141.1-2
0.141.1-1
0.135.3-1
/
/
docs_src
/
frontend
/
tutorial004_py310.py
☽
☼
docs_src/frontend/tutorial004_py310.py
code
plain
raw
Expat
(c) 2018 Sebastián RamÃrez
debian/copyright
1
from fastapi import APIRouter, FastAPI
2
3
app = FastAPI()
4
router = APIRouter()
5
6
router.frontend("/", directory="dist", fallback="index.html")
7
app.include_router(router, prefix="/app")