diff --git a/src/config/init.rs b/src/config/init.rs index 6505280..c41029b 100644 --- a/src/config/init.rs +++ b/src/config/init.rs @@ -130,10 +130,9 @@ pub async fn routes() -> axum::Router { ) .route( crate::callers::queue::endpoints::QUEUESONGDATAWIPE, - patch(crate::callers::queue::song::endpoint::wipe_data_from_song_queue) - .route_layer(axum::middleware::from_fn( - crate::auth::auth::, - )), + patch(crate::callers::queue::song::endpoint::wipe_data_from_song_queue).route_layer( + axum::middleware::from_fn(crate::auth::auth::), + ), ) .route( crate::callers::queue::endpoints::QUEUEMETADATA, @@ -155,10 +154,9 @@ pub async fn routes() -> axum::Router { ) .route( crate::callers::queue::endpoints::QUEUECOVERARTDATA, - get(crate::callers::queue::coverart::endpoint::fetch_coverart_with_data) - .route_layer(axum::middleware::from_fn( - crate::auth::auth::, - )), + get(crate::callers::queue::coverart::endpoint::fetch_coverart_with_data).route_layer( + axum::middleware::from_fn(crate::auth::auth::), + ), ) .route( crate::callers::queue::endpoints::QUEUECOVERART, @@ -193,9 +191,9 @@ pub async fn routes() -> axum::Router { ) .route( crate::callers::endpoints::GETSONGS, - get(crate::callers::song::endpoint::get_songs).route_layer( - axum::middleware::from_fn(crate::auth::auth::), - ), + get(crate::callers::song::endpoint::get_songs).route_layer(axum::middleware::from_fn( + crate::auth::auth::, + )), ) .route( crate::callers::endpoints::GETCOVERART, diff --git a/src/main.rs b/src/main.rs index d313d3d..1c5d1b5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,9 @@ pub mod auth; -pub mod db; pub mod callers; pub mod config; +pub mod db; pub mod repo; - #[tokio::main] async fn main() { // initialize tracing