diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-12-17 11:50:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 10:50:11 +0000 |
commit | 4c2c053afeae3ba359ffc4b858877e69bae4c4dd (patch) | |
tree | 4a9d96353ec67c0cf4d0fa2af6f6bb7445500c5e | |
parent | ceaa646a341a3353087ce94c23afa568c232eb06 (diff) |
fix: urls for publishing (#21613)
-rw-r--r-- | cli/tools/registry/api.rs | 4 |
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( |