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