mirror of
https://github.com/denoland/deno.git
synced 2025-01-22 06:09:25 -05:00
fix: urls for publishing (#21613)
This commit is contained in:
parent
ceaa646a34
commit
4c2c053afe
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue