tsk-41: Refactored code to prepare for auth implementation
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user