From 82aa2ae86483234928a354db6079e545ef21ec87 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 25 Jul 2025 17:52:20 -0400 Subject: [PATCH] Made endpoint available --- src/callers/mod.rs | 1 + src/main.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/callers/mod.rs b/src/callers/mod.rs index ab4be4e..6e31042 100644 --- a/src/callers/mod.rs +++ b/src/callers/mod.rs @@ -16,6 +16,7 @@ pub mod endpoints { pub const QUEUECOVERARTDATAWIPE: &str = "/api/v2/coverart/queue/data/wipe"; pub const CREATESONG: &str = "/api/v2/song"; + pub const GETSONGS: &str = "/api/v2/song"; pub const CREATECOVERART: &str = "/api/v2/coverart"; } diff --git a/src/main.rs b/src/main.rs index e77c5f2..a77b90a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,6 +115,10 @@ pub mod init { crate::callers::endpoints::CREATECOVERART, 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 {