diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-20 02:52:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 02:52:34 +0200 |
commit | 7696f77245c2302787d239da50248385b3292a5e (patch) | |
tree | 81db43f660c382679cc7a834d0be06c0218592a8 /config/routes.rb | |
parent | 33144e132d28f5b820ae12e4b8e4fb34ca47b1d6 (diff) |
Add moderation API (#9387)
Fix #8580 Fix #7143
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 145079c69..764db8db2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -398,6 +398,29 @@ Rails.application.routes.draw do namespace :push do resource :subscription, only: [:create, :show, :update, :destroy] end + + namespace :admin do + resources :accounts, only: [:index, :show] do + member do + post :enable + post :unsilence + post :unsuspend + post :approve + post :reject + end + + resource :action, only: [:create], controller: 'account_actions' + end + + resources :reports, only: [:index, :show] do + member do + post :assign_to_self + post :unassign + post :reopen + post :resolve + end + end + end end namespace :v2 do |