diff --git a/src/callers/mod.rs b/src/callers/mod.rs index e0bfeda..3c6b223 100644 --- a/src/callers/mod.rs +++ b/src/callers/mod.rs @@ -21,6 +21,7 @@ pub mod endpoints { pub const DOWNLOADSONG: &str = "/api/v2/song/download/{id}"; pub const CREATECOVERART: &str = "/api/v2/coverart"; pub const GETCOVERART: &str = "/api/v2/coverart"; + pub const DOWNLOADCOVERART: &str = "/api/v2/coverart/download/{id}"; } pub mod response { diff --git a/src/main.rs b/src/main.rs index 6a4a58d..23b3218 100644 --- a/src/main.rs +++ b/src/main.rs @@ -123,6 +123,7 @@ pub mod init { crate::callers::endpoints::GETCOVERART, get(crate::callers::coverart::endpoint::get_coverart), ) + .route(crate::callers::endpoints::DOWNLOADCOVERART, get(crate::callers::coverart::endpoint::download_coverart)) .route( crate::callers::endpoints::STREAMSONG, get(crate::callers::song::endpoint::stream_song),