☰
Debian Codegraph
@
2.24.0-1
/
/
docs
/
examples
/
request_data
/
request_data_1.py
☽
☼
docs/examples/request_data/request_data_1.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 typing import Dict
2
3
from litestar import Litestar, post
4
5
6
@post(path="/")
7
async def index(data: Dict[str, str]) -> Dict[str, str]:
8
return data
9
10
11
app = Litestar(route_handlers=[index])