tsk-179: Modify status code of song queue endpoint #226

Merged
kdeng00 merged 5 commits from tsk-179 into main 2025-10-29 15:20:04 -04:00
Showing only changes of commit 087e214eed - Show all commits
+2 -2
View File
@@ -124,7 +124,7 @@ pub mod endpoint {
content_type = "multipart/form-data"
),
responses(
(status = 200, description = "Song queued", body = super::response::song_queue::Response),
(status = 201, description = "Song queued", body = super::response::song_queue::Response),
(status = 400, description = "Invalid request passed", body = super::response::song_queue::Response),
(status = 500, description = "Error queueing song", body = super::response::song_queue::Response)
)
@@ -188,7 +188,7 @@ pub mod endpoint {
String::from(super::super::super::response::SUCCESSFUL)
};
(axum::http::StatusCode::OK, axum::Json(response))
(axum::http::StatusCode::CREATED, axum::Json(response))
}
/// Endpoint to link a user id to a queued song