diff --git a/src/main.rs b/src/main.rs index 9bc8584..327689d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -153,7 +153,8 @@ async fn get_folder_contents(url_tail: &str, config: &Config) -> Result Result> { debug!("[publicise_it] Entering function..."); - let url = "https://cloud.theadamcooper.com/ocs/v2.php/apps/files_sharing/api/v1/shares"; + let base_url = Url::parse(config.paths.root.as_str())?; + let url = base_url.join("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")];