From eed7b329a36498299a6f0c23b14708ea791bc92a Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Jul 2025 20:02:46 -0400 Subject: [PATCH] Added function call and TODOs --- src/main.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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())), }