summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2022-08-09 18:15:25 -0400
committerTusooa Zhu <tusooa@kazv.moe>2022-08-09 18:15:25 -0400
commit738ca484fd812d3fc027d4c3037d307c61fa24ca (patch)
tree0408f3ecab5dc9c245647d11f38571ebc6827c3f
parenta7f01ffc1d0795f65b34b6dd9337d665f27edff9 (diff)
downloadpleroma-738ca484fd812d3fc027d4c3037d307c61fa24ca.tar.gz
pleroma-738ca484fd812d3fc027d4c3037d307c61fa24ca.zip
Update api spec to reflect OAuth scope change
-rw-r--r--lib/pleroma/web/api_spec/operations/pleroma_backup_operation.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/operations/pleroma_backup_operation.ex b/lib/pleroma/web/api_spec/operations/pleroma_backup_operation.ex
index 82ec1e7bb..45fa2b058 100644
--- a/lib/pleroma/web/api_spec/operations/pleroma_backup_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/pleroma_backup_operation.ex
@@ -16,7 +16,7 @@ defmodule Pleroma.Web.ApiSpec.PleromaBackupOperation do
%Operation{
tags: ["Backups"],
summary: "List backups",
- security: [%{"oAuth" => ["read:account"]}],
+ security: [%{"oAuth" => ["read:backups"]}],
operationId: "PleromaAPI.BackupController.index",
responses: %{
200 =>
@@ -37,7 +37,7 @@ defmodule Pleroma.Web.ApiSpec.PleromaBackupOperation do
%Operation{
tags: ["Backups"],
summary: "Create a backup",
- security: [%{"oAuth" => ["read:account"]}],
+ security: [%{"oAuth" => ["read:backups"]}],
operationId: "PleromaAPI.BackupController.create",
responses: %{
200 =>