diff options
Diffstat (limited to 'lib/pleroma/web/plugs/frontend_static.ex')
-rw-r--r-- | lib/pleroma/web/plugs/frontend_static.ex | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pleroma/web/plugs/frontend_static.ex b/lib/pleroma/web/plugs/frontend_static.ex index ebe7eaf86..011fa5894 100644 --- a/lib/pleroma/web/plugs/frontend_static.ex +++ b/lib/pleroma/web/plugs/frontend_static.ex @@ -33,6 +33,9 @@ defmodule Pleroma.Web.Plugs.FrontendStatic do |> Map.put(:frontend_type, opts[:frontend_type]) end + def call(%{path_info: ["_matrix" | _]} = conn, _opts), do: conn + def call(%{path_info: ["api" | _]} = conn, _opts), do: conn + def call(conn, opts) do with false <- api_route?(conn.path_info), false <- invalid_path?(conn.path_info), |