|
|
|
@ -80,8 +80,11 @@ int Application::run() { |
|
|
|
|
|
|
|
|
|
|
|
const auto json_response = dat.process(data); |
|
|
|
const auto json_response = dat.process(data); |
|
|
|
|
|
|
|
|
|
|
|
response->write(Status::client_error_precondition_required, |
|
|
|
if (json_response.is_null()) { |
|
|
|
json_response.dump(), |
|
|
|
return response::bad_object(response); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
response->write(Status::success_created, json_response.dump(), |
|
|
|
{header_access_control, header_application_data}); |
|
|
|
{header_access_control, header_application_data}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|