Download coverart endpoint #166

Merged
kdeng00 merged 5 commits from download_coverart into v0.2 2025-07-28 17:05:42 -04:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 04bdef56c9 - Show all commits
+1
View File
@@ -21,6 +21,7 @@ pub mod endpoints {
pub const DOWNLOADSONG: &str = "/api/v2/song/download/{id}"; pub const DOWNLOADSONG: &str = "/api/v2/song/download/{id}";
pub const CREATECOVERART: &str = "/api/v2/coverart"; pub const CREATECOVERART: &str = "/api/v2/coverart";
pub const GETCOVERART: &str = "/api/v2/coverart"; pub const GETCOVERART: &str = "/api/v2/coverart";
pub const DOWNLOADCOVERART: &str = "/api/v2/coverart/download/{id}";
} }
pub mod response { pub mod response {
+1
View File
@@ -123,6 +123,7 @@ pub mod init {
crate::callers::endpoints::GETCOVERART, crate::callers::endpoints::GETCOVERART,
get(crate::callers::coverart::endpoint::get_coverart), get(crate::callers::coverart::endpoint::get_coverart),
) )
.route(crate::callers::endpoints::DOWNLOADCOVERART, get(crate::callers::coverart::endpoint::download_coverart))
.route( .route(
crate::callers::endpoints::STREAMSONG, crate::callers::endpoints::STREAMSONG,
get(crate::callers::song::endpoint::stream_song), get(crate::callers::song::endpoint::stream_song),