Endpoint is now available
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user