projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cea31df
)
Enum instead of Stream
author
Mark Felder
<feld@feld.me>
Thu, 25 Feb 2021 15:06:56 +0000
(09:06 -0600)
committer
Mark Felder
<feld@feld.me>
Thu, 25 Feb 2021 15:06:56 +0000
(09:06 -0600)
lib/pleroma/web.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web.ex
b/lib/pleroma/web.ex
index fe2652ac934fb7c05abd4d9aebbd3c8481d0b57c..a638bb1983d5cebf639871061c38a1de82188284 100644
(file)
--- a/
lib/pleroma/web.ex
+++ b/
lib/pleroma/web.ex
@@
-236,7
+236,7
@@
defmodule Pleroma.Web do
def get_api_routes do
Pleroma.Web.Router.__routes__()
- |>
Strea
m.reject(fn r -> r.plug == Pleroma.Web.Fallback.RedirectController end)
+ |>
Enu
m.reject(fn r -> r.plug == Pleroma.Web.Fallback.RedirectController end)
|> Enum.map(fn r ->
r.path
|> String.split("/", trim: true)