Note our upgrade path for this functionality

This commit is contained in:
Mark Felder 2021-02-25 13:08:36 -06:00
parent 902d4e4a4a
commit 76b166f040

View File

@ -234,6 +234,7 @@ defmodule Pleroma.Web do
Pleroma.Web.Endpoint.url() Pleroma.Web.Endpoint.url()
end end
# TODO: Change to Phoenix.Router.routes/1 for Phoenix 1.6.0+
def get_api_routes do def get_api_routes do
Pleroma.Web.Router.__routes__() Pleroma.Web.Router.__routes__()
|> Enum.reject(fn r -> r.plug == Pleroma.Web.Fallback.RedirectController end) |> Enum.reject(fn r -> r.plug == Pleroma.Web.Fallback.RedirectController end)