|
|
|
|
@ -37,7 +37,7 @@ int Application::run() {
|
|
|
|
|
|
|
|
|
|
https_server->default_resource["POST"] = |
|
|
|
|
[](std::shared_ptr<HttpsServer::Response> response, ...) { |
|
|
|
|
return response->write(Status::client_error_bad_request); |
|
|
|
|
return response::not_found(response); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
servers.emplace_back( |
|
|
|
|
@ -54,6 +54,7 @@ int Application::run() {
|
|
|
|
|
return response::not_found(response); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
servers.emplace_back([&]() { http_server.start(web_server_started); }); |
|
|
|
|
|
|
|
|
|
for (auto &server : servers) { |
|
|
|
|
|