Made endpoint available
This commit is contained in:
@@ -16,6 +16,7 @@ pub mod endpoints {
|
|||||||
pub const QUEUECOVERARTDATAWIPE: &str = "/api/v2/coverart/queue/data/wipe";
|
pub const QUEUECOVERARTDATAWIPE: &str = "/api/v2/coverart/queue/data/wipe";
|
||||||
|
|
||||||
pub const CREATESONG: &str = "/api/v2/song";
|
pub const CREATESONG: &str = "/api/v2/song";
|
||||||
|
pub const GETSONGS: &str = "/api/v2/song";
|
||||||
pub const CREATECOVERART: &str = "/api/v2/coverart";
|
pub const CREATECOVERART: &str = "/api/v2/coverart";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,6 +115,10 @@ pub mod init {
|
|||||||
crate::callers::endpoints::CREATECOVERART,
|
crate::callers::endpoints::CREATECOVERART,
|
||||||
post(crate::callers::coverart::endpoint::create_coverart),
|
post(crate::callers::coverart::endpoint::create_coverart),
|
||||||
)
|
)
|
||||||
|
.route(
|
||||||
|
crate::callers::endpoints::GETSONGS,
|
||||||
|
get(crate::callers::song::endpoint::get_songs)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn app() -> axum::Router {
|
pub async fn app() -> axum::Router {
|
||||||
|
|||||||
Reference in New Issue
Block a user