diff options
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index c228a51bed1..30681356c5f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -333,7 +333,12 @@ Rails.application.routes.draw do resources :groups, only: [:index] resources :snippets, only: [:index] - resources :todos, only: [:index, :destroy] + + resources :todos, only: [:index, :destroy] do + collection do + delete :destroy_all + end + end resources :projects, only: [:index] do collection do |