alias Pleroma.Config
socket("/socket", Pleroma.Web.UserSocket)
-
- plug(Plug.Telemetry, event_prefix: [:phoenix, :endpoint])
+ socket("/live", Phoenix.LiveView.Socket)
plug(Pleroma.Web.Plugs.SetLocalePlug)
plug(CORSPlug)
}
)
- plug(Plug.Static.IndexHtml, at: "/pleroma/fedife/")
+ plug(Plug.Static.IndexHtml, at: "/akkoma/swaggerui")
plug(Pleroma.Web.Plugs.FrontendStatic,
- at: "/pleroma/fedife",
- frontend_type: :fedife,
+ at: "/akkoma/swaggerui",
+ frontend_type: :swagger,
gzip: true,
+ if: &Akkoma.Web.Swagger.ui_enabled?/0,
cache_control_for_etags: @static_cache_control,
headers: %{
"cache-control" => @static_cache_control
}
)
+ plug(Pleroma.Web.Plugs.FrontendStatic,
+ at: "/",
+ frontend_type: :mastodon,
+ gzip: true,
+ cache_control_for_etags: @static_cache_control,
+ headers: %{
+ "cache-control" => @static_cache_control
+ }
+ )
# Serve at "/" the static files from "priv/static" directory.
#