diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-01-18 16:40:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 16:40:09 +0100 |
commit | 343e1fe8e9ce94ea4f86d3a3df71f22f5fb2319d (patch) | |
tree | 551b4b1abb37bb40431699d3837e3ac14da86651 /config/routes.rb | |
parent | 4b92e59f4fea4486ee6e5af7421e7945d5f7f998 (diff) |
Add confirmation screen when handling reports (#22375)
* Add confirmation screen on moderation actions * Add flash notice when a report has been processed * Refactor tests * Add tests
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 98e19667c..0bee2f639 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -310,7 +310,11 @@ Rails.application.routes.draw do end resources :reports, only: [:index, :show] do - resources :actions, only: [:create], controller: 'reports/actions' + resources :actions, only: [:create], controller: 'reports/actions' do + collection do + post :preview + end + end member do post :assign_to_self |