Added missing message in the response
This commit is contained in:
@@ -805,6 +805,7 @@ pub mod endpoint {
|
|||||||
Ok((date_created, id)) => {
|
Ok((date_created, id)) => {
|
||||||
song.id = id;
|
song.id = id;
|
||||||
song.date_created = date_created;
|
song.date_created = date_created;
|
||||||
|
response.message = String::from("Successful");
|
||||||
response.data.push(song);
|
response.data.push(song);
|
||||||
|
|
||||||
(axum::http::StatusCode::OK, axum::Json(response))
|
(axum::http::StatusCode::OK, axum::Json(response))
|
||||||
|
|||||||
Reference in New Issue
Block a user