diff --git a/src/store.cpp b/src/store.cpp index c072b7e..b6b7900 100644 --- a/src/store.cpp +++ b/src/store.cpp @@ -37,7 +37,7 @@ int Application::run() { https_server->default_resource["POST"] = [](std::shared_ptr 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) {