Rename /api/v1/subscriptions/enable to /api/v1/subscriptions/options

This commit is contained in:
silverpill 2022-09-08 10:05:34 +00:00
parent 596c13c0bb
commit 5b071f050b
2 changed files with 1 additions and 2 deletions

View file

@ -686,7 +686,6 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/SubscriptionOption' $ref: '#/components/schemas/SubscriptionOption'
/api/v1/subscriptions/enable:
post: post:
summary: Enable subscriptions summary: Enable subscriptions
security: security:

View file

@ -78,7 +78,7 @@ async fn get_subscription_options(
Ok(HttpResponse::Ok().json(options)) Ok(HttpResponse::Ok().json(options))
} }
#[post("/enable")] #[post("/options")]
pub async fn subscriptions_enabled( pub async fn subscriptions_enabled(
auth: BearerAuth, auth: BearerAuth,
config: web::Data<Config>, config: web::Data<Config>,