tsk-41: Refactored code to prepare for auth implementation

This commit is contained in:
2025-08-12 18:40:11 -04:00
parent ce2e4feb02
commit 3ea008868a
5 changed files with 93 additions and 40 deletions

View File

@@ -1,5 +1,6 @@
pub async fn update_queued_song(
base_url: &String,
// base_url: &String,
app: &crate::config::App,
song_path: &String,
song_queue_id: &uuid::Uuid,
) -> Result<reqwest::Response, reqwest::Error> {
@@ -14,7 +15,7 @@ pub async fn update_queued_song(
.file_name("track01.flac"),
);
let url = format!("{base_url}/api/v2/song/queue/{song_queue_id}");
let url = format!("{}/api/v2/song/queue/{song_queue_id}", app.uri);
println!("Url: {url:?}");
let request = client.patch(url).multipart(form);