From 4aee900ae83eb9f26a91ac9b7e78f953afe6846e Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Thu, 14 Jul 2022 10:48:27 +0100 Subject: [PATCH] fix compilation --- lib/pleroma/web/endpoint.ex | 2 +- lib/{akkoma => pleroma}/web/swagger.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename lib/{akkoma => pleroma}/web/swagger.ex (76%) diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex index 4a235fdd7..62a6459b1 100644 --- a/lib/pleroma/web/endpoint.ex +++ b/lib/pleroma/web/endpoint.ex @@ -72,7 +72,7 @@ defmodule Pleroma.Web.Endpoint do at: "/akkoma/swaggerui", frontend_type: :swagger, gzip: true, - if: &Akkoma.Web.Swagger.ui_enabled?/0, + if: &Pleroma.Web.Swagger.ui_enabled?/0, cache_control_for_etags: @static_cache_control, headers: %{ "cache-control" => @static_cache_control diff --git a/lib/akkoma/web/swagger.ex b/lib/pleroma/web/swagger.ex similarity index 76% rename from lib/akkoma/web/swagger.ex rename to lib/pleroma/web/swagger.ex index c09cba3a1..e75ce2180 100644 --- a/lib/akkoma/web/swagger.ex +++ b/lib/pleroma/web/swagger.ex @@ -1,4 +1,4 @@ -defmodule Akkoma.Web.Swagger do +defmodule Pleroma.Web.Swagger do alias Pleroma.Config def ui_enabled? do -- 2.45.2