tsk-170: Code formatting
This commit is contained in:
@@ -877,7 +877,6 @@ pub mod endpoint {
|
|||||||
|
|
||||||
use crate::callers::song::song_queue;
|
use crate::callers::song::song_queue;
|
||||||
|
|
||||||
|
|
||||||
/// Endpoint to queue a song. Starts the process and places the song in a queue
|
/// Endpoint to queue a song. Starts the process and places the song in a queue
|
||||||
#[utoipa::path(
|
#[utoipa::path(
|
||||||
post,
|
post,
|
||||||
|
|||||||
+5
-3
@@ -29,7 +29,6 @@ pub mod db {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// initialize tracing
|
// initialize tracing
|
||||||
@@ -48,8 +47,8 @@ async fn main() {
|
|||||||
pub mod init {
|
pub mod init {
|
||||||
use axum::routing::{delete, get, patch, post};
|
use axum::routing::{delete, get, patch, post};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use utoipa::OpenApi;
|
|
||||||
use tower_http::timeout::TimeoutLayer;
|
use tower_http::timeout::TimeoutLayer;
|
||||||
|
use utoipa::OpenApi;
|
||||||
|
|
||||||
use axum::http::{
|
use axum::http::{
|
||||||
HeaderValue, Method,
|
HeaderValue, Method,
|
||||||
@@ -223,7 +222,10 @@ pub mod init {
|
|||||||
|
|
||||||
routes()
|
routes()
|
||||||
.await
|
.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::Extension(pool))
|
||||||
.layer(axum::extract::DefaultBodyLimit::max(1024 * 1024 * 1024))
|
.layer(axum::extract::DefaultBodyLimit::max(1024 * 1024 * 1024))
|
||||||
.layer(TimeoutLayer::new(Duration::from_secs(300)))
|
.layer(TimeoutLayer::new(Duration::from_secs(300)))
|
||||||
|
|||||||
Reference in New Issue
Block a user