diff --git a/src/main.rs b/src/main.rs index e8c9cbb..d62ce92 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,7 +89,7 @@ pub struct Collection { async fn get_folder_contents(url_tail: &str, password: &str) -> Result> { debug!("[get_folder_contents] Entering function..."); - let root_url = Url::parse("https://theadamcooper.com")?; + let root_url = Url::parse("https://cloud.theadamcooper.com")?; let method = reqwest::Method::from_bytes(b"PROPFIND").unwrap(); let client = reqwest::Client::new(); let url = root_url.join(url_tail)?; @@ -122,7 +122,7 @@ async fn get_folder_contents(url_tail: &str, password: &str) -> Result Result> { debug!("[publicise_it] Entering function..."); - let url = "https://theadamcooper.com/nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares"; + let url = "https://cloud.theadamcooper.com/ocs/v2.php/apps/files_sharing/api/v1/shares"; let method = reqwest::Method::POST; let client = reqwest::Client::new(); let params = [("path", path), ("shareType", "3")]; @@ -232,7 +232,7 @@ async fn main() -> std::io::Result<()> { let password: String = get_password().unwrap().trim().to_string(); let folder_contents: String = - get_folder_contents("/nextcloud/remote.php/dav/files/adam/test_public", &password) + get_folder_contents("/remote.php/dav/files/adam/test_public", &password) .await .unwrap();