From 5b071f050b3fb95053a05c3a0debb1371551d4f3 Mon Sep 17 00:00:00 2001 From: silverpill Date: Thu, 8 Sep 2022 10:05:34 +0000 Subject: [PATCH] Rename /api/v1/subscriptions/enable to /api/v1/subscriptions/options --- docs/openapi.yaml | 1 - src/mastodon_api/subscriptions/views.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 2f1b3bb..ee2f07f 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -686,7 +686,6 @@ paths: type: array items: $ref: '#/components/schemas/SubscriptionOption' - /api/v1/subscriptions/enable: post: summary: Enable subscriptions security: diff --git a/src/mastodon_api/subscriptions/views.rs b/src/mastodon_api/subscriptions/views.rs index 176195b..29fa33f 100644 --- a/src/mastodon_api/subscriptions/views.rs +++ b/src/mastodon_api/subscriptions/views.rs @@ -78,7 +78,7 @@ async fn get_subscription_options( Ok(HttpResponse::Ok().json(options)) } -#[post("/enable")] +#[post("/options")] pub async fn subscriptions_enabled( auth: BearerAuth, config: web::Data,