From 4c2c053afeae3ba359ffc4b858877e69bae4c4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 17 Dec 2023 11:50:11 +0100 Subject: fix: urls for publishing (#21613) --- cli/tools/registry/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') 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 { - 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( -- cgit v1.2.3