diff options
author | lain <lain@soykaf.club> | 2020-11-17 16:43:07 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-11-17 16:43:07 +0100 |
commit | bb9650f3c26c0a6155cfb15f5e4da8257316661a (patch) | |
tree | 2ae3b299611206988b84c46cfa0396e02b73eccc /lib/pleroma/web/api_spec | |
parent | f69fe36ebfdb6fad4af853f002705f5ea3c697a1 (diff) | |
download | pleroma-bb9650f3c26c0a6155cfb15f5e4da8257316661a.tar.gz |
FrontendController: Return error on installation error.
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex b/lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex index 9d7d017a2..96d4cdee7 100644 --- a/lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/frontend_operation.ex @@ -36,7 +36,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.FrontendOperation do requestBody: request_body("Parameters", install_request(), required: true), responses: %{ 200 => Operation.response("Response", "application/json", list_of_frontends()), - 403 => Operation.response("Forbidden", "application/json", ApiError) + 403 => Operation.response("Forbidden", "application/json", ApiError), + 400 => Operation.response("Error", "application/json", ApiError) } } end |