Note our upgrade path for this functionality
This commit is contained in:
parent
902d4e4a4a
commit
76b166f040
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue