tsk-207: Code formatting
This commit is contained in:
+9
-11
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user