diff --git a/Cargo.lock b/Cargo.lock index aec40d7..d6f2bd0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -834,7 +834,7 @@ dependencies = [ [[package]] name = "icarus" -version = "0.3.5" +version = "0.3.6" dependencies = [ "axum", "axum-extra", @@ -886,8 +886,8 @@ dependencies = [ [[package]] name = "icarus_models" -version = "0.8.0" -source = "git+ssh://git@git.kundeng.us/phoenix/icarus_models.git?tag=v0.8.0#860d684e7b340b05d43d1fc3e6bd36b7cc45d81b" +version = "0.8.3" +source = "git+ssh://git@git.kundeng.us/phoenix/icarus_models.git?tag=v0.8.3#0a27b8ccb1ac40361df8d3131f567f37f06cdc08" dependencies = [ "josekit", "rand 0.9.2", diff --git a/Cargo.toml b/Cargo.toml index c8a826a..07511ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icarus" -version = "0.3.5" +version = "0.3.6" edition = "2024" rust-version = "1.90" @@ -26,7 +26,7 @@ josekit = { version = "0.10.3" } utoipa = { version = "5.4.0", features = ["axum_extras"] } utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] } icarus_meta = { git = "ssh://git@git.kundeng.us/phoenix/icarus_meta.git", tag = "v0.4.3" } -icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.8.0" } +icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.8.3" } icarus_envy = { git = "ssh://git@git.kundeng.us/phoenix/icarus_envy.git", tag = "v0.5.0" } [dev-dependencies] 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::), ), )