From 6252a9e584acb831d555af360f02c8de014193c1 Mon Sep 17 00:00:00 2001 From: aumetra Date: Sat, 14 Oct 2023 21:19:44 +0200 Subject: [PATCH] mount openapi --- kitsune/Cargo.toml | 2 +- kitsune/src/http/openapi.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kitsune/Cargo.toml b/kitsune/Cargo.toml index 1cd488989..627f38226 100644 --- a/kitsune/Cargo.toml +++ b/kitsune/Cargo.toml @@ -78,7 +78,7 @@ tracing-error = "0.2.0" tracing-subscriber = "0.3.17" typed-builder = "0.16.2" url = "2.4.1" -utoipa = { version = "4.0.0", features = ["axum_extras", "time", "uuid"] } +utoipa = { version = "4.0.0", features = ["axum_extras", "uuid"] } utoipa-swagger-ui = { version = "4.0.0", features = ["axum"] } # --- Optional dependencies --- diff --git a/kitsune/src/http/openapi.rs b/kitsune/src/http/openapi.rs index 124df2c9c..4dd4d1ddc 100644 --- a/kitsune/src/http/openapi.rs +++ b/kitsune/src/http/openapi.rs @@ -115,7 +115,9 @@ struct CommonApiDocs; mastodon::api::v1::statuses::put, mastodon::api::v1::statuses::context::get, mastodon::api::v1::statuses::favourite::post, + mastodon::api::v1::statuses::favourited_by::get, mastodon::api::v1::statuses::reblog::post, + mastodon::api::v1::statuses::reblogged_by::get, mastodon::api::v1::statuses::source::get, mastodon::api::v1::statuses::unfavourite::post, mastodon::api::v1::statuses::unreblog::post,