mirror of
https://github.com/oatpp/oatpp.git
synced 2025-01-06 16:24:27 +08:00
Merge branch 'master' into async_executor_with_scheduler
This commit is contained in:
commit
32523ca6c7
@ -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