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