Add batch approve/reject for pending hashtags in admin UI (#11791)
This commit is contained in:
parent
3feacd2b14
commit
261e52268c
7 changed files with 142 additions and 19 deletions
|
@ -251,7 +251,14 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
resources :account_moderation_notes, only: [:create, :destroy]
|
||||
resources :tags, only: [:index, :show, :update]
|
||||
|
||||
resources :tags, only: [:index, :show, :update] do
|
||||
collection do
|
||||
post :approve_all
|
||||
post :reject_all
|
||||
post :batch
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
get '/admin', to: redirect('/admin/dashboard', status: 302)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue