Song stream endpoint is now available

This commit is contained in:
kdeng00
2025-07-27 12:55:47 -04:00
parent 3193657da3
commit 72c537d083
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ pub mod endpoints {
pub const CREATESONG: &str = "/api/v2/song"; pub const CREATESONG: &str = "/api/v2/song";
pub const GETSONGS: &str = "/api/v2/song"; pub const GETSONGS: &str = "/api/v2/song";
pub const STREAMSONG: &str = "/api/v2/song/stream";
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";
} }
+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::STREAMSONG, get(crate::callers::song::endpoint::stream_song))
} }
pub async fn app() -> axum::Router { pub async fn app() -> axum::Router {