Debian Codegraph @

docs/examples/onboarding/fastapi/routing.py

raw
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])