Create song #33

Merged
phoenix merged 9 commits from create_song into devel 2025-07-15 00:53:13 +00:00
Showing only changes of commit eed7b329a3 - Show all commits

View File

@@ -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())),
}