mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-23 17:54:22 +00:00
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:
commit
9f386df83c
|
@ -765,11 +765,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