From 7478f353ce26e4632e8d36f7d48332bd61cbedfe Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 12 Aug 2026 16:10:05 -0400 Subject: [PATCH] Refactor --- src/main.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index c2aa6d4..cb4fd1f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2475,16 +2475,14 @@ mod tests { match app .clone() .oneshot( - axum::http::Request::builder() - .method(axum::http::Method::GET) - .uri(crate::callers::endpoints::GETALLSONGS) - .header(axum::http::header::CONTENT_TYPE, "application/json") - .header( - axum::http::header::AUTHORIZATION, - super::bearer_auth().await, - ) - .body(axum::body::Body::empty()) - .unwrap(), + super::request::run_post( + None, + crate::callers::endpoints::GETALLSONGS, + axum::http::Method::GET, + false, + ) + .await + .unwrap(), ) .await {