diff --git a/src/HTTPServer.cc b/src/HTTPServer.cc index 31254368..6d2cd16d 100644 --- a/src/HTTPServer.cc +++ b/src/HTTPServer.cc @@ -661,7 +661,7 @@ HTTPServer::HTTPServer(shared_ptr state) } }); - this->router.add(HTTPRequest::Method::GET, "/y/data/ep3/maps", [this](ArgsT&& args) -> RetT { + this->router.add(HTTPRequest::Method::GET, "/y/data/ep3/maps", [this](ArgsT&&) -> RetT { co_return co_await call_on_thread_pool(*this->state->thread_pool, [&]() -> shared_ptr { auto ret = make_shared(phosg::JSON::dict()); for (const auto& [map_number, map] : this->state->ep3_map_index->all_maps()) {