|
|
|
|
@ -78,9 +78,10 @@ int Application::run() {
|
|
|
|
|
return response::not_found(response); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const auto j = dat.process(data); |
|
|
|
|
const auto json_response = dat.process(data); |
|
|
|
|
|
|
|
|
|
response->write(Status::success_ok, data.dump(), |
|
|
|
|
response->write(Status::client_error_precondition_required, |
|
|
|
|
json_response.dump(), |
|
|
|
|
{header_access_control, header_application_data}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|