diff --git a/src/store.cpp b/src/store.cpp index 5f424a0..c072b7e 100644 --- a/src/store.cpp +++ b/src/store.cpp @@ -31,7 +31,7 @@ int Application::run() { if (https_server) { https_server->default_resource["GET"] = - [&](std::shared_ptr response, ...) { + [](std::shared_ptr response, ...) { return response::not_found(response); }; @@ -45,7 +45,7 @@ int Application::run() { } http_server.default_resource["GET"] = - [&](std::shared_ptr response, ...) { + [](std::shared_ptr response, ...) { return response::not_found(response); };