Added initial code to link coverart id and song queue id

This commit is contained in:
kdeng00
2025-05-19 20:46:36 -04:00
parent ddb0bf27f8
commit d242ec37a5
3 changed files with 48 additions and 1 deletions
+5 -1
View File
@@ -58,7 +58,7 @@ async fn main() {
}
pub mod init {
use axum::routing::{get, post};
use axum::routing::{get, patch, post};
use std::time::Duration;
use tower_http::timeout::TimeoutLayer;
@@ -89,6 +89,10 @@ pub mod init {
crate::callers::endpoints::QUEUECOVERART,
post(crate::callers::coverart::endpoint::queue),
)
.route(
crate::callers::endpoints::QUEUECOVERARTLINK,
patch(crate::callers::coverart::endpoint::link),
)
}
pub async fn app() -> axum::Router {