Note our upgrade path for this functionality
authorMark Felder <feld@feld.me>
Thu, 25 Feb 2021 19:08:36 +0000 (13:08 -0600)
committerMark Felder <feld@feld.me>
Thu, 25 Feb 2021 19:08:36 +0000 (13:08 -0600)
lib/pleroma/web.ex

index a638bb1983d5cebf639871061c38a1de82188284..8630f244b8505dc5bba489fa88f72061f1b65396 100644 (file)
@@ -234,6 +234,7 @@ defmodule Pleroma.Web 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)