Fix HTTP endpoint logic: remove incorrect negation in rare-tables path check

The !req.path.starts_with( was causing every subsequent command to be processed as a rare-tables substring command.
This commit is contained in:
Vargur
2025-05-31 01:21:00 +01:00
committed by Martin Michelsen
parent aabbafb749
commit f5f457aa6f
+1 -1
View File
@@ -798,7 +798,7 @@ asio::awaitable<std::unique_ptr<HTTPResponse>> HTTPServer::handle_request(shared
} else if (req.path == "/y/data/rare-tables") {
this->require_GET(req);
ret = this->generate_rare_table_list_json();
} else if (!req.path.starts_with("/y/data/rare-tables/")) {
} else if (req.path.starts_with("/y/data/rare-tables/")) {
this->require_GET(req);
ret = co_await this->generate_rare_table_json(req.path.substr(20));
} else if (req.path == "/y/data/quests") {