aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/router.ex
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2018-04-07 17:26:56 +0300
committereal <eal@waifu.club>2018-04-07 17:26:56 +0300
commit7c47534970e0a648ded4700fe20c99d6ab15cd5c (patch)
tree83d515027af0fcdc1787e05d30b7097342ba74c6 /lib/pleroma/web/router.ex
parentd41bfd1d47587c95450c5953b9fb4374008ecb8c (diff)
downloadpleroma-7c47534970e0a648ded4700fe20c99d6ab15cd5c.tar.gz
MastoAPI: Persist frontend timelines and settings.
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r--lib/pleroma/web/router.ex6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex
index 5f27f3caa..a33d03fc9 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -120,6 +120,12 @@ defmodule Pleroma.Web.Router do
post("/media", MastodonAPIController, :upload)
end
+ scope "/api/web", Pleroma.Web.MastodonAPI do
+ pipe_through(:authenticated_api)
+
+ put("/settings", MastodonAPIController, :put_settings)
+ end
+
scope "/api/v1", Pleroma.Web.MastodonAPI do
pipe_through(:api)
get("/instance", MastodonAPIController, :masto_instance)