Make suggested change for create_response
authorSean King <seanking2919@protonmail.com>
Sun, 29 Aug 2021 13:25:54 +0000 (07:25 -0600)
committerSean King <seanking2919@protonmail.com>
Sun, 29 Aug 2021 13:25:54 +0000 (07:25 -0600)
lib/pleroma/web/api_spec/operations/app_operation.ex

index 5e72c482434ddaf7b85e26a6f5db0e7ccc856b81..2284ac127658778ec9fce13d1d35b0b28f761da3 100644 (file)
@@ -23,7 +23,7 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
       operationId: "AppController.create",
       requestBody: Helpers.request_body("Parameters", create_request(), required: true),
       responses: %{
-        200 => create_response(),
+        200 => Operation.response("App", "application/json", App),
         422 =>
           Operation.response(
             "Unprocessable Entity",
@@ -120,8 +120,4 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
       }
     }
   end
-
-  defp create_response do
-    Operation.response("App", "application/json", App)
-  end
 end