From: Mark Felder Date: Thu, 25 Feb 2021 19:08:36 +0000 (-0600) Subject: Note our upgrade path for this functionality X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=76b166f0401c85df537c13591a7397e2c21732ac;p=akkoma Note our upgrade path for this functionality --- diff --git a/lib/pleroma/web.ex b/lib/pleroma/web.ex index a638bb198..8630f244b 100644 --- a/lib/pleroma/web.ex +++ b/lib/pleroma/web.ex @@ -234,6 +234,7 @@ defmodule Pleroma.Web 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)