logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 63ef1dcedca7fb315f611388e477d3847d1acaa1
parent c665d532951c34c7d1185e66b59390202b54d0c9
Author: Mark Felder <feld@feld.me>
Date:   Sat,  3 Jun 2023 14:17:49 -0400

Phoenix.Router.routes/1 is the public function we are meant to be using here

Diffstat:

Mlib/pleroma/web/router.ex3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex @@ -1003,9 +1003,8 @@ defmodule Pleroma.Web.Router do options("/*path", RedirectController, :empty) end - # TODO: Change to Phoenix.Router.routes/1 for Phoenix 1.6.0+ def get_api_routes do - __MODULE__.__routes__() + Phoenix.Router.routes(__MODULE__) |> Enum.reject(fn r -> r.plug == Pleroma.Web.Fallback.RedirectController end) |> Enum.map(fn r -> r.path