diff --git a/src/api.rs b/src/api.rs index f1efe10..b62472e 100644 --- a/src/api.rs +++ b/src/api.rs @@ -1,4 +1,4 @@ mod base; mod rest_wrapper_v1; -pub use rest_wrapper_v1::{rest_api_routes, rest_api_docs}; +pub use rest_wrapper_v1::{rest_api_docs, rest_api_routes}; diff --git a/src/api/rest_wrapper_v1.rs b/src/api/rest_wrapper_v1.rs index f8f4715..db639b5 100644 --- a/src/api/rest_wrapper_v1.rs +++ b/src/api/rest_wrapper_v1.rs @@ -41,10 +41,7 @@ pub fn rest_api_docs(mpv: Mpv) -> Router { .routes(routes!(play_get, play_set)) .routes(routes!(volume_get, volume_set)) .routes(routes!(time_get, time_set)) - .routes(routes!( - playlist_get, - playlist_remove_or_clear - )) + .routes(routes!(playlist_get, playlist_remove_or_clear)) .routes(routes!(playlist_next)) .routes(routes!(playlist_previous)) .routes(routes!(playlist_goto)) @@ -64,12 +61,10 @@ pub fn rest_api_docs(mpv: Mpv) -> Router { // but they all had issues). Feel free to replace this with a better solution. #[derive(OpenApi)] -#[openapi( - info( - description = "The legacy Grzegorz Brzeczyszczykiewicz API, used to control a running mpv instance", - version = "1.0.0", - ), -)] +#[openapi(info( + description = "The legacy Grzegorz Brzeczyszczykiewicz API, used to control a running mpv instance", + version = "1.0.0", +))] struct ApiDoc; #[derive(serde::Serialize, utoipa::ToSchema)] @@ -136,7 +131,6 @@ struct LoadFileArgs { path: String, } - /// Add item to playlist #[utoipa::path( post,