diff --git a/src/callers/song.rs b/src/callers/song.rs index 5d9a41d..47c6389 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -352,7 +352,7 @@ pub mod endpoint { (status = 400, description = "Linkage failed", body = Vec) ) )] - pub async fn download_flac( + pub async fn download_queued_song( axum::Extension(pool): axum::Extension, axum::extract::Path(id): axum::extract::Path, ) -> (StatusCode, axum::response::Response) { diff --git a/src/main.rs b/src/main.rs index 18a10f9..603b214 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,7 +115,7 @@ pub mod init { #[derive(utoipa::OpenApi)] #[openapi( - paths(song_endpoints::queue_song, song_endpoints::link_user_id, song_endpoints::fetch_queue_song, song_endpoints::download_flac, + paths(song_endpoints::queue_song, song_endpoints::link_user_id, song_endpoints::fetch_queue_song, song_endpoints::download_queued_song, song_endpoints::update_song_queue_status, song_endpoints::update_song_queue, song_endpoints::create_metadata, song_endpoints::wipe_data_from_song_queue, song_endpoints::get_songs, song_endpoints::get_all_songs, song_endpoints::stream_song, song_endpoints::download_song, song_endpoints::delete_song, coverart_queue_endpoints::queue, coverart_queue_endpoints::link, coverart_queue_endpoints::fetch_coverart_no_data, coverart_queue_endpoints::fetch_coverart_with_data, coverart_endpoints::create_coverart, coverart_queue_endpoints::wipe_data_from_coverart_queue, @@ -157,7 +157,7 @@ pub mod init { ) .route( crate::callers::endpoints::QUEUESONGDATA, - get(crate::callers::song::endpoint::download_flac).route_layer( + get(crate::callers::song::endpoint::download_queued_song).route_layer( axum::middleware::from_fn(crate::auth::auth::), ), )