diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 3da7563fd..70e252409 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -67,9 +67,21 @@ Rails.application.routes.draw do resources :domain_blocks, only: [:index, :create] resources :settings, only: [:index, :update] - resources :accounts, only: [:index, :show, :update] do + resources :reports, only: [:index, :show] do member do + post :resolve + post :silence post :suspend + post :remove + end + end + + resources :accounts, only: [:index, :show] do + member do + post :silence + post :unsilence + post :suspend + post :unsuspend end end end @@ -115,6 +127,7 @@ Rails.application.routes.draw do resources :apps, only: [:create] resources :blocks, only: [:index] resources :favourites, only: [:index] + resources :reports, only: [:index, :create] resources :follow_requests, only: [:index] do member do @@ -138,6 +151,7 @@ Rails.application.routes.draw do member do get :statuses + get 'statuses/media', to: 'accounts#media_statuses', as: :media_statuses get :followers get :following |