diff options
author | raeno <just.raeno@gmail.com> | 2018-12-10 16:25:33 +0400 |
---|---|---|
committer | raeno <just.raeno@gmail.com> | 2018-12-13 22:17:53 +0100 |
commit | 21afdf6d9966265de95df860d90d250c76bdbe08 (patch) | |
tree | 472c041128c575e01c416110619bf4dc76ff081d /lib/pleroma/web/router.ex | |
parent | b19ee62252114d024b52aff3ebb01ac16244990c (diff) | |
download | pleroma-21afdf6d9966265de95df860d90d250c76bdbe08.tar.gz |
Insert meta tags into static index.html on the fly for OStatus#notice
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 9c06fac4f..3239249f9 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -354,6 +354,10 @@ defmodule Pleroma.Web.Router do plug(:accepts, ["xml", "atom", "html", "activity+json"]) end + pipeline :oembed do + plug(:accepts, ["json", "xml"]) + end + scope "/", Pleroma.Web do pipe_through(:ostatus) @@ -369,6 +373,12 @@ defmodule Pleroma.Web.Router do post("/push/subscriptions/:id", Websub.WebsubController, :websub_incoming) end + scope "/", Pleroma.Web do + pipe_through(:oembed) + + get("/oembed", OEmbed.OEmbedController, :url) + end + pipeline :activitypub do plug(:accepts, ["activity+json"]) plug(Pleroma.Web.Plugs.HTTPSignaturePlug) |