summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-12-17 11:50:11 +0100
committerGitHub <noreply@github.com>2023-12-17 10:50:11 +0000
commit4c2c053afeae3ba359ffc4b858877e69bae4c4dd (patch)
tree4a9d96353ec67c0cf4d0fa2af6f6bb7445500c5e
parentceaa646a341a3353087ce94c23afa568c232eb06 (diff)
fix: urls for publishing (#21613)
-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(