Minor fixes

This commit is contained in:
kdeng00
2025-05-23 18:08:00 -04:00
parent f0736da861
commit 521ad5200e
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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";
}
+1
View File
@@ -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) => {