From 521ad5200e0069b02913ec675b537f4299855dcc Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 23 May 2025 18:08:00 -0400 Subject: [PATCH] Minor fixes --- src/callers/mod.rs | 2 ++ src/callers/song.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/callers/mod.rs b/src/callers/mod.rs index 1dbc6c4..99e918a 100644 --- a/src/callers/mod.rs +++ b/src/callers/mod.rs @@ -11,4 +11,6 @@ pub mod endpoints { pub const QUEUECOVERART: &str = "/api/v2/coverart/queue"; pub const QUEUECOVERARTDATA: &str = "/api/v2/coverart/queue/data"; pub const QUEUECOVERARTLINK: &str = "/api/v2/coverart/queue/link"; + + pub const CREATESONG: &str = "/api/v2/song"; } diff --git a/src/callers/song.rs b/src/callers/song.rs index 38a35cc..3990f0f 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -598,6 +598,7 @@ pub mod endpoint { song.id = id; song.date_created = date_created; // response.data.push(returned_song); + response.data.push(song); (axum::http::StatusCode::OK, axum::Json(response)) } Err(err) => {