diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-09-23 11:56:22 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-09-23 11:56:22 -0500 |
commit | f3a1f9c3bbb7321876a09b3846b5e10ecf4af94f (patch) | |
tree | bcfd29188a841470cdeca478b1c5a3bbd4cc930a /lib/pleroma/web/api_spec.ex | |
parent | 34d7e864db8f9cc7fb73ce2fef8466ce8e09ed85 (diff) | |
parent | e02101e15c425416975f756aca7f3b058006668d (diff) | |
download | pleroma-f3a1f9c3bbb7321876a09b3846b5e10ecf4af94f.tar.gz |
Merge branch 'develop' into feature/bulk-confirmation
Diffstat (limited to 'lib/pleroma/web/api_spec.ex')
-rw-r--r-- | lib/pleroma/web/api_spec.ex | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/pleroma/web/api_spec.ex b/lib/pleroma/web/api_spec.ex index 79fd5f871..93a5273e3 100644 --- a/lib/pleroma/web/api_spec.ex +++ b/lib/pleroma/web/api_spec.ex @@ -13,10 +13,15 @@ defmodule Pleroma.Web.ApiSpec do @impl OpenApi def spec do %OpenApi{ - servers: [ - # Populate the Server info from a phoenix endpoint - OpenApiSpex.Server.from_endpoint(Endpoint) - ], + servers: + if Phoenix.Endpoint.server?(:pleroma, Endpoint) do + [ + # Populate the Server info from a phoenix endpoint + OpenApiSpex.Server.from_endpoint(Endpoint) + ] + else + [] + end, info: %OpenApiSpex.Info{ title: "Pleroma", description: Application.spec(:pleroma, :description) |> to_string(), |