diff --git a/src/callers/mod.rs b/src/callers/mod.rs index d81789b..8fb79b6 100644 --- a/src/callers/mod.rs +++ b/src/callers/mod.rs @@ -17,6 +17,7 @@ pub mod endpoints { pub const CREATESONG: &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 GETCOVERART: &str = "/api/v2/coverart"; } diff --git a/src/main.rs b/src/main.rs index 4e8798e..f093d57 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::STREAMSONG, get(crate::callers::song::endpoint::stream_song)) } pub async fn app() -> axum::Router {