ability to set and reset avatar, profile banner and backgroud in Mastodon API

This commit is contained in:
Sachin Joshi 2019-05-27 15:31:01 +05:45
commit 1452a96ad6
3 changed files with 164 additions and 0 deletions

View file

@ -318,6 +318,10 @@ defmodule Pleroma.Web.Router do
patch("/accounts/update_credentials", MastodonAPIController, :update_credentials)
patch("/accounts/update_avatar", MastodonAPIController, :update_avatar)
patch("/accounts/update_banner", MastodonAPIController, :update_banner)
patch("/accounts/update_background", MastodonAPIController, :update_background)
post("/statuses", MastodonAPIController, :post_status)
delete("/statuses/:id", MastodonAPIController, :delete_status)