diff --git a/src/repos/OSCRepo.cpp b/src/repos/OSCRepo.cpp index 3a62c83..b70a13d 100644 --- a/src/repos/OSCRepo.cpp +++ b/src/repos/OSCRepo.cpp @@ -12,7 +12,7 @@ using namespace rapidjson; std::vector> OSCRepo::loadPackages() { std::vector> result; - std::string directoryUrl = this->url; + std::string directoryUrl = this->url + "/api/v3/contents"; std::string response; bool success = downloadFileToMemory(directoryUrl, &response); @@ -25,7 +25,7 @@ std::vector> OSCRepo::loadPackages() // update repo url this->url.replace(0, 5, "http"); - directoryUrl = this->url; + directoryUrl = this->url + "/api/v3/contents"; // retry fetch success = downloadFileToMemory(directoryUrl, &response);