[MastoAPI] Add switching of frontend flavours

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-02-03 12:31:12 +01:00
commit 4df455f69b
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
5 changed files with 70 additions and 5 deletions

View file

@ -236,6 +236,9 @@ defmodule Pleroma.Web.Router do
get("/suggestions", MastodonAPIController, :suggestions)
get("/endorsements", MastodonAPIController, :empty_array)
post("/pleroma/flavour/:flavour", MastodonAPIController, :set_flavour)
get("/pleroma/flavour", MastodonAPIController, :get_flavour)
end
scope "/api/web", Pleroma.Web.MastodonAPI do