Update for API v3

This commit is contained in:
Felix Ableitner 2021-04-05 20:33:06 +02:00
parent 0fcf8fe523
commit cd04d54b9a

View file

@ -79,7 +79,7 @@ async fn fetch_instance_details(domain: &str) -> Result<InstanceDetails, Error>
let node_info_url = format!("https://{}/nodeinfo/2.0.json", domain); let node_info_url = format!("https://{}/nodeinfo/2.0.json", domain);
let node_info_request = client.get(&node_info_url).timeout(REQUEST_TIMEOUT).send(); let node_info_request = client.get(&node_info_url).timeout(REQUEST_TIMEOUT).send();
let site_info_url = format!("https://{}/api/v2/site", domain); let site_info_url = format!("https://{}/api/v3/site", domain);
let site_info_request = client.get(&site_info_url).timeout(REQUEST_TIMEOUT).send(); let site_info_request = client.get(&site_info_url).timeout(REQUEST_TIMEOUT).send();
let (node_info, site_info) = try_join!(node_info_request, site_info_request)?; let (node_info, site_info) = try_join!(node_info_request, site_info_request)?;