diff options
author | Maxim Filippov <colixer@gmail.com> | 2019-01-02 17:02:50 +0300 |
---|---|---|
committer | Maxim Filippov <colixer@gmail.com> | 2019-01-02 17:02:50 +0300 |
commit | 48e81d3d40d334bccb8438c61ab6b307ddb1392f (patch) | |
tree | 4b2ceee20618a52ebd277474973107cd53284d85 /lib/pleroma/web/router.ex | |
parent | 917d48d09bad573260bc816310ee2c75d4db84a8 (diff) | |
download | pleroma-48e81d3d40d334bccb8438c61ab6b307ddb1392f.tar.gz |
Add RichMediaController and tests
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 1f929ee21..8df45bf4d 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -232,6 +232,12 @@ defmodule Pleroma.Web.Router do put("/settings", MastodonAPIController, :put_settings) end + scope "/api", Pleroma.Web.RichMedia do + pipe_through(:authenticated_api) + + get("/rich_media/parse", RichMediaController, :parse) + end + scope "/api/v1", Pleroma.Web.MastodonAPI do pipe_through(:api) get("/instance", MastodonAPIController, :masto_instance) |