Add batch approve/reject for pending hashtags in admin UI (#11791)

This commit is contained in:
Eugen Rochko
2019-09-09 12:50:09 +02:00
committed by GitHub
parent 3feacd2b14
commit 261e52268c
7 changed files with 142 additions and 19 deletions

View File

@ -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)