[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

@ -94,3 +94,17 @@ Request parameters can be passed via [query strings](https://en.wikipedia.org/wi
## `/api/pleroma/admin/`
See [Admin-API](Admin-API.md)
## `/api/v1/pleroma/flavour/:flavour`
* Method `POST`
* Authentication: required
* Response: JSON string. Returns the user flavour or the default one on success, otherwise returns `{"error": "error_msg"}`
* Example response: "glitch"
* Note: This is intended to be used only by mastofe
## `/api/v1/pleroma/flavour`
* Method `GET`
* Authentication: required
* Response: JSON string. Returns the user flavour or the default one.
* Example response: "glitch"
* Note: This is intended to be used only by mastofe