tsk-207: Code formatting

This commit is contained in:
kdeng00
2025-11-04 11:00:37 -05:00
parent 3e71ed31b8
commit 531d6ee01e
2 changed files with 10 additions and 13 deletions
+9 -11
View File
@@ -130,10 +130,9 @@ pub async fn routes() -> axum::Router {
) )
.route( .route(
crate::callers::queue::endpoints::QUEUESONGDATAWIPE, crate::callers::queue::endpoints::QUEUESONGDATAWIPE,
patch(crate::callers::queue::song::endpoint::wipe_data_from_song_queue) patch(crate::callers::queue::song::endpoint::wipe_data_from_song_queue).route_layer(
.route_layer(axum::middleware::from_fn( axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
crate::auth::auth::<axum::body::Body>, ),
)),
) )
.route( .route(
crate::callers::queue::endpoints::QUEUEMETADATA, crate::callers::queue::endpoints::QUEUEMETADATA,
@@ -155,10 +154,9 @@ pub async fn routes() -> axum::Router {
) )
.route( .route(
crate::callers::queue::endpoints::QUEUECOVERARTDATA, crate::callers::queue::endpoints::QUEUECOVERARTDATA,
get(crate::callers::queue::coverart::endpoint::fetch_coverart_with_data) get(crate::callers::queue::coverart::endpoint::fetch_coverart_with_data).route_layer(
.route_layer(axum::middleware::from_fn( axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
crate::auth::auth::<axum::body::Body>, ),
)),
) )
.route( .route(
crate::callers::queue::endpoints::QUEUECOVERART, crate::callers::queue::endpoints::QUEUECOVERART,
@@ -193,9 +191,9 @@ pub async fn routes() -> axum::Router {
) )
.route( .route(
crate::callers::endpoints::GETSONGS, crate::callers::endpoints::GETSONGS,
get(crate::callers::song::endpoint::get_songs).route_layer( get(crate::callers::song::endpoint::get_songs).route_layer(axum::middleware::from_fn(
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>), crate::auth::auth::<axum::body::Body>,
), )),
) )
.route( .route(
crate::callers::endpoints::GETCOVERART, crate::callers::endpoints::GETCOVERART,
+1 -2
View File
@@ -1,10 +1,9 @@
pub mod auth; pub mod auth;
pub mod db;
pub mod callers; pub mod callers;
pub mod config; pub mod config;
pub mod db;
pub mod repo; pub mod repo;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
// initialize tracing // initialize tracing