tsk-170: Code formatting

This commit is contained in:
kdeng00
2025-08-22 15:23:21 -04:00
parent 96be29a818
commit 922a6b9a35
2 changed files with 5 additions and 4 deletions
-1
View File
@@ -877,7 +877,6 @@ pub mod endpoint {
use crate::callers::song::song_queue;
/// Endpoint to queue a song. Starts the process and places the song in a queue
#[utoipa::path(
post,
+5 -3
View File
@@ -29,7 +29,6 @@ pub mod db {
}
}
#[tokio::main]
async fn main() {
// initialize tracing
@@ -48,8 +47,8 @@ async fn main() {
pub mod init {
use axum::routing::{delete, get, patch, post};
use std::time::Duration;
use utoipa::OpenApi;
use tower_http::timeout::TimeoutLayer;
use utoipa::OpenApi;
use axum::http::{
HeaderValue, Method,
@@ -223,7 +222,10 @@ pub mod init {
routes()
.await
.merge(utoipa_swagger_ui::SwaggerUi::new("/swagger-ui").url("/api-docs/openapi.json", ApiDoc::openapi()))
.merge(
utoipa_swagger_ui::SwaggerUi::new("/swagger-ui")
.url("/api-docs/openapi.json", ApiDoc::openapi()),
)
.layer(axum::Extension(pool))
.layer(axum::extract::DefaultBodyLimit::max(1024 * 1024 * 1024))
.layer(TimeoutLayer::new(Duration::from_secs(300)))