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:
+1
-1
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user