MastoAPI: Persist frontend timelines and settings.

This commit is contained in:
eal 2018-04-07 17:26:56 +03:00
commit 7c47534970
2 changed files with 19 additions and 1 deletions

View file

@ -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)