diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 16:14:21 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 16:14:21 +0200 |
commit | 6d7290f47c11c08b55d6066d5123b8b9f04cf0bc (patch) | |
tree | a6fa07815a3f70252afc24edc9f202862425dfcf /config | |
parent | 31a0202546acb20094eb6367061e50f5525cc7ed (diff) |
Add API for getting info about authenticated user: /api/v1/accounts/verify_credentials
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index 06e927822..771294453 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -29,7 +29,7 @@ Rails.application.routes.draw do resource :settings, only: [:show, :update] resources :media, only: [:show] - + namespace :api do # PubSubHubbub resources :subscriptions, only: [:show] @@ -59,10 +59,11 @@ Rails.application.routes.draw do resources :follows, only: [:create] resources :media, only: [:create] resources :apps, only: [:create] - + resources :accounts, only: [:show] do collection do get :relationships + get :verify_credentials end member do @@ -78,7 +79,7 @@ Rails.application.routes.draw do end get :about, to: 'about#index' - + root 'home#index' match '*unmatched_route', via: :all, to: 'application#raise_not_found' |