Merge commit '07fed0fda2'; commit 'e3173a279d'; commit '21787546c0'; commit 'fda34591ce'; commit '0ada3fe823'; commit '32d263cb90'; commit 'c9e4200ed2'; commit '3ff9c5e2a6'; commit 'fa543a9361'; commit 'c23b81e399' into cycles-phase-1

This commit is contained in:
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
32 changed files with 213 additions and 131 deletions

View file

@ -235,16 +235,4 @@ defmodule Pleroma.Web do
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)
|> Enum.map(fn r ->
r.path
|> String.split("/", trim: true)
|> List.first()
end)
|> Enum.uniq()
end
end