forked from mirrors/akkoma
Note our upgrade path for this functionality
This commit is contained in:
parent
902d4e4a4a
commit
76b166f040
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue