diff --git a/src/store.cpp b/src/store.cpp index e90ba03..d82d4b8 100644 --- a/src/store.cpp +++ b/src/store.cpp @@ -31,10 +31,8 @@ int Application::run() { if (https_server) { https_server->default_resource["GET"] = - [&](std::shared_ptr response, - std::shared_ptr) { - response->write(Status::success_ok, store.dump(), - {header_access_control, header_application_data}); + [&](std::shared_ptr response, ...) { + return response::not_found(response); }; https_server->default_resource["POST"] =