X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb.ex;h=d26931af95f088fe0e87051bc464081de9613665;hb=26d2c677b78b7cc22a98dfe4648e5b3f5b4da3ea;hp=24751faba4a3928158cc7c288586e96470259392;hpb=359ded086c99c364ab6342a6c5007f251cd0ff24;p=akkoma diff --git a/lib/pleroma/web.ex b/lib/pleroma/web.ex index 24751faba..d26931af9 100644 --- a/lib/pleroma/web.ex +++ b/lib/pleroma/web.ex @@ -231,20 +231,4 @@ defmodule Pleroma.Web do defmacro __using__(which) when is_atom(which) do apply(__MODULE__, which, []) end - - 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