Debian Codegraph @

docs/examples/request_data/request_data_1.py

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