From 5c6352397257d82e75b90cc5e7de1a3922bde7bd Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 31 May 2017 15:36:24 -0400 Subject: Spec coverage and refactor for the api/v1/accounts controllers (#3451) --- config/routes.rb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index b1590f929..5c1c8e594 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -169,19 +169,18 @@ Rails.application.routes.draw do end end + namespace :accounts do + get :verify_credentials, to: 'credentials#show' + patch :update_credentials, to: 'credentials#update' + resource :search, only: :show, controller: :search + resources :relationships, only: :index + end resources :accounts, only: [:show] do - collection do - get :relationships - get :verify_credentials - patch :update_credentials - get :search - end + resources :statuses, only: :index, controller: 'accounts/statuses' + resources :followers, only: :index, controller: 'accounts/follower_accounts' + resources :following, only: :index, controller: 'accounts/following_accounts' member do - get :statuses - get :followers - get :following - post :follow post :unfollow post :block -- cgit