mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-22 22:49:25 +00:00
Don't make MediaProxy be a compile-dep of Router
Speeds up recompilation by removing MediaProxy as a compile-time dep of Router
This commit is contained in:
parent
b221d77a6d
commit
fda34591ce
|
@ -764,11 +764,11 @@ defmodule Pleroma.Web.Router do
|
|||
get("/embed/:id", EmbedController, :show)
|
||||
end
|
||||
|
||||
scope "/proxy/", Pleroma.Web.MediaProxy do
|
||||
get("/preview/:sig/:url", MediaProxyController, :preview)
|
||||
get("/preview/:sig/:url/:filename", MediaProxyController, :preview)
|
||||
get("/:sig/:url", MediaProxyController, :remote)
|
||||
get("/:sig/:url/:filename", MediaProxyController, :remote)
|
||||
scope "/proxy/", Pleroma.Web do
|
||||
get("/preview/:sig/:url", MediaProxy.MediaProxyController, :preview)
|
||||
get("/preview/:sig/:url/:filename", MediaProxy.MediaProxyController, :preview)
|
||||
get("/:sig/:url", MediaProxy.MediaProxyController, :remote)
|
||||
get("/:sig/:url/:filename", MediaProxy.MediaProxyController, :remote)
|
||||
end
|
||||
|
||||
if Pleroma.Config.get(:env) == :dev do
|
||||
|
|
Loading…
Reference in a new issue