forked from AkkomaGang/akkoma
Enum instead of Stream
This commit is contained in:
parent
cea31df6a6
commit
8ad1613717
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ def base_url do
|
||||||
|
|
||||||
def get_api_routes do
|
def get_api_routes do
|
||||||
Pleroma.Web.Router.__routes__()
|
Pleroma.Web.Router.__routes__()
|
||||||
|> Stream.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
|
||||||
|> String.split("/", trim: true)
|
|> String.split("/", trim: true)
|
||||||
|
|
Loading…
Reference in a new issue