diff --git a/src/main.rs b/src/main.rs index 376d232..36c5a46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -88,7 +88,20 @@ async fn some_work( { Ok(_inner_response) => { println!("Response: {_inner_response:?}"); - Ok(()) + + // TODO: Do not hard code this. Check if one of the existing + // endpoints already have the user_id + let user_id = uuid::Uuid::new_v4(); + // TODO: Place this somewhere else + let song_type = String::from("flac"); + match the_rest::create_song(app_base_url, &metadata, &user_id, &song_type).await { + Ok(_) => { + Ok(()) + } + Err(err) => { + Err(std::io::Error::other(err.to_string())) + } + } } Err(err) => Err(std::io::Error::other(err.to_string())), }