☰
Debian Codegraph
@
2.24.0-1
/
/
docs
/
examples
/
onboarding
/
fastapi
/
routing.py
☽
☼
docs/examples/onboarding/fastapi/routing.py
code
plain
raw
Expat
Alc <
[email protected]
>,; Cody Fincher <
[email protected]
>,; Jacob Coffee <
[email protected]
>,; Janek Nouvertné <
[email protected]
>,; Litestar Developers <
[email protected]
>,; Peter Schutt <
[email protected]
>,; Visakh Unnikrishnan <
[email protected]
>,
debian/copyright
1
from litestar import Litestar, get
2
3
4
@get("/")
5
async def index() -> dict[str, str]:
6
return {"hello": "world"}
7
8
9
app = Litestar(route_handlers=[index])