- plug(OAuthScopesPlug, %{scopes: ["read:accounts"]} when action in [:index, :create])
- plug(OpenApiSpex.Plug.CastAndValidate, render_error: Pleroma.Web.ApiSpec.RenderError)
+ plug(OAuthScopesPlug, %{scopes: ["read:backups"]} when action in [:index, :create])
+ plug(Pleroma.Web.ApiSpec.CastAndValidate)