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:
parent
07fed0fda2
e3173a279d
21787546c0
fda34591ce
0ada3fe823
32d263cb90
c9e4200ed2
3ff9c5e2a6
fa543a9361
c23b81e399
commit
2e682788a3
32 changed files with 213 additions and 131 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue