I’m not sure how to properly fix it, but I’ve been able to work around it, you can find it at https://ilja.space/pleroma/swaggerui/ (note that you need to also use the last slash).
For anyone who can spend the time looking further into this problem, it seems that the /akkoma
route isn’t properly used for some reason + it also seems to need a slash at the end (at least I have to when using the pleroma route, as I have done now). Here’s the diff I did to get it working on /pleroma/swaggerui/
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index e3a251ca1..440142f25 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -66,10 +66,10 @@ defmodule Pleroma.Web.Endpoint do
}
)
- plug(Plug.Static.IndexHtml, at: "/akkoma/swaggerui")
+ plug(Plug.Static.IndexHtml, at: "/pleroma/swaggerui/")
plug(Pleroma.Web.Plugs.FrontendStatic,
- at: "/akkoma/swaggerui",
+ at: "/pleroma/swaggerui",
frontend_type: :swagger,
gzip: true,
if: &Pleroma.Web.Swagger.ui_enabled?/0,