Phoenix.Router.routes/1 is the public function we are meant to be using here
This commit is contained in:
parent
c665d53295
commit
63ef1dcedc
@ -1003,9 +1003,8 @@ defmodule Pleroma.Web.Router do
|
|||||||
options("/*path", RedirectController, :empty)
|
options("/*path", RedirectController, :empty)
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: Change to Phoenix.Router.routes/1 for Phoenix 1.6.0+
|
|
||||||
def get_api_routes do
|
def get_api_routes do
|
||||||
__MODULE__.__routes__()
|
Phoenix.Router.routes(__MODULE__)
|
||||||
|> Enum.reject(fn r -> r.plug == Pleroma.Web.Fallback.RedirectController end)
|
|> Enum.reject(fn r -> r.plug == Pleroma.Web.Fallback.RedirectController end)
|
||||||
|> Enum.map(fn r ->
|
|> Enum.map(fn r ->
|
||||||
r.path
|
r.path
|
||||||
|
Loading…
Reference in New Issue
Block a user