fix: urls for publishing (#21613)

This commit is contained in:
Bartek Iwańczuk 2023-12-17 11:50:11 +01:00 committed by GitHub
parent ceaa646a34
commit 4c2c053afe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(