Create metadata #133
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user