mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Update README.md
This commit is contained in:
parent
08ff2a566c
commit
e891ed6dfb
@ -135,9 +135,7 @@ ENDPOINT_ASYNC("POST", "demo/api_async/json", PostJSONAsync) {
|
||||
ENDPOINT_ASYNC_INIT(PostJSONAsync)
|
||||
|
||||
Action act() override {
|
||||
return request->readBodyToDtoAsync<MyDto>(this,
|
||||
&PostJSONAsync::onBodyObtained,
|
||||
controller->getDefaultObjectMapper());
|
||||
return request->readBodyToDtoAsync<MyDto>(controller->getDefaultObjectMapper()).callbackTo(&PostJSONAsync::onBodyObtained);
|
||||
}
|
||||
|
||||
Action onBodyObtained(const MyDto::ObjectWrapper& dto) {
|
||||
|
Loading…
Reference in New Issue
Block a user