about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorDavid Celis <me@davidcel.is>2017-04-09 09:33:40 -0700
committerEugen <eugen@zeonfederated.com>2017-04-09 18:33:40 +0200
commitd4fe6cd2bfee50cfcde5de5c3f58240552e9c71d (patch)
treed4a7cf3666e6310652fac11f3078506b7ab44b54 /config
parentea6c930c04762bef00b42dad16a17b71b8acc93b (diff)
Allow users to update their Account in the API (#1179)
* Allow users to update their Account in the API

It would be nice for API clients to be able to allow users to update
their accounts without having to wrap Mastodon in a web view. This patch
adds an API endpoint to let users submit a PATCH for their account.

Signed-off-by: David Celis <me@davidcel.is>

* Add /api/v1/accounts/update_credentials to the API docs

Signed-off-by: David Celis <me@davidcel.is>
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index b0a13aa78..9adcdb862 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -163,6 +163,7 @@ Rails.application.routes.draw do
         collection do
           get :relationships
           get :verify_credentials
+          patch :update_credentials
           get :search
         end