summaryrefslogtreecommitdiff
path: root/cli/tools/registry/api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/registry/api.rs')
-rw-r--r--cli/tools/registry/api.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tools/registry/api.rs b/cli/tools/registry/api.rs
index e79590e89..4985a0ed4 100644
--- a/cli/tools/registry/api.rs
+++ b/cli/tools/registry/api.rs
@@ -115,7 +115,7 @@ pub async fn get_scope(
registry_api_url: &str,
scope: &str,
) -> Result<reqwest::Response, AnyError> {
- let scope_url = format!("{}scope/{}", registry_api_url, scope);
+ let scope_url = format!("{}scopes/{}", registry_api_url, scope);
let response = client.get(&scope_url).send().await?;
Ok(response)
}
@@ -125,7 +125,7 @@ pub fn get_package_api_url(
scope: &str,
package: &str,
) -> String {
- format!("{}scope/{}/packages/{}", registry_api_url, scope, package)
+ format!("{}scopes/{}/packages/{}", registry_api_url, scope, package)
}
pub async fn get_package(