1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 18:49:15 +00:00

Enum instead of Stream

This commit is contained in:
Mark Felder 2021-02-25 09:06:56 -06:00
parent cea31df6a6
commit 8ad1613717

View file

@ -236,7 +236,7 @@ def base_url do
def get_api_routes do
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 ->
r.path
|> String.split("/", trim: true)