summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-21 12:57:12 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-21 12:57:12 -0300
commit2ef1ea501f48e29399d94ec5843984e4f7014b99 (patch)
tree3304f0b8ed7fbc32a62ed11d743f631480ae10fd /config
parentf37765efa237fdc26b9937bcb2128910eccbaf91 (diff)
downloadgitlab-ce-2ef1ea501f48e29399d94ec5843984e4f7014b99.tar.gz
Add missing route to mark all todos as donetasks
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
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