Merge branch 'cycles-router-mediaproxy' into 'develop'

Recompilation speedup: don't make MediaProxy be a compile-dep of Router

See merge request pleroma/pleroma!3418
This commit is contained in:
feld 2021-05-28 18:22:27 +00:00
commit 9f386df83c

View File

@ -765,11 +765,11 @@ defmodule Pleroma.Web.Router do
get("/embed/:id", EmbedController, :show) get("/embed/:id", EmbedController, :show)
end end
scope "/proxy/", Pleroma.Web.MediaProxy do scope "/proxy/", Pleroma.Web do
get("/preview/:sig/:url", MediaProxyController, :preview) get("/preview/:sig/:url", MediaProxy.MediaProxyController, :preview)
get("/preview/:sig/:url/:filename", MediaProxyController, :preview) get("/preview/:sig/:url/:filename", MediaProxy.MediaProxyController, :preview)
get("/:sig/:url", MediaProxyController, :remote) get("/:sig/:url", MediaProxy.MediaProxyController, :remote)
get("/:sig/:url/:filename", MediaProxyController, :remote) get("/:sig/:url/:filename", MediaProxy.MediaProxyController, :remote)
end end
if Pleroma.Config.get(:env) == :dev do if Pleroma.Config.get(:env) == :dev do