cargo fmt
This commit is contained in:
parent
b0b77b4981
commit
c8ee55ec92
@ -1,4 +1,4 @@
|
|||||||
mod base;
|
mod base;
|
||||||
mod rest_wrapper_v1;
|
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};
|
||||||
|
@ -41,10 +41,7 @@ pub fn rest_api_docs(mpv: Mpv) -> Router {
|
|||||||
.routes(routes!(play_get, play_set))
|
.routes(routes!(play_get, play_set))
|
||||||
.routes(routes!(volume_get, volume_set))
|
.routes(routes!(volume_get, volume_set))
|
||||||
.routes(routes!(time_get, time_set))
|
.routes(routes!(time_get, time_set))
|
||||||
.routes(routes!(
|
.routes(routes!(playlist_get, playlist_remove_or_clear))
|
||||||
playlist_get,
|
|
||||||
playlist_remove_or_clear
|
|
||||||
))
|
|
||||||
.routes(routes!(playlist_next))
|
.routes(routes!(playlist_next))
|
||||||
.routes(routes!(playlist_previous))
|
.routes(routes!(playlist_previous))
|
||||||
.routes(routes!(playlist_goto))
|
.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.
|
// but they all had issues). Feel free to replace this with a better solution.
|
||||||
|
|
||||||
#[derive(OpenApi)]
|
#[derive(OpenApi)]
|
||||||
#[openapi(
|
#[openapi(info(
|
||||||
info(
|
description = "The legacy Grzegorz Brzeczyszczykiewicz API, used to control a running mpv instance",
|
||||||
description = "The legacy Grzegorz Brzeczyszczykiewicz API, used to control a running mpv instance",
|
version = "1.0.0",
|
||||||
version = "1.0.0",
|
))]
|
||||||
),
|
|
||||||
)]
|
|
||||||
struct ApiDoc;
|
struct ApiDoc;
|
||||||
|
|
||||||
#[derive(serde::Serialize, utoipa::ToSchema)]
|
#[derive(serde::Serialize, utoipa::ToSchema)]
|
||||||
@ -136,7 +131,6 @@ struct LoadFileArgs {
|
|||||||
path: String,
|
path: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Add item to playlist
|
/// Add item to playlist
|
||||||
#[utoipa::path(
|
#[utoipa::path(
|
||||||
post,
|
post,
|
||||||
|
Loading…
Reference in New Issue
Block a user