diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-08 09:29:19 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-14 08:36:07 +0100 |
commit | 20d382a891d92197620eb4e72526577a916292d7 (patch) | |
tree | bf9dcaddb8c33e9d7c6e15f07a3ecef1d010933f /config | |
parent | f8a8999a2069dedd9ca21bde2b726a077c057576 (diff) | |
download | gitlab-ce-20d382a891d92197620eb4e72526577a916292d7.tar.gz |
Moved todo creation over to project todos controller
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index d018fa742cc..ef198a5e87a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -679,7 +679,6 @@ Rails.application.routes.draw do post :toggle_subscription post :toggle_award_emoji post :remove_wip - post :todo end collection do @@ -760,7 +759,6 @@ Rails.application.routes.draw do get :referenced_merge_requests get :related_branches get :can_create_branch - post :todo end collection do post :bulk_update @@ -791,6 +789,8 @@ Rails.application.routes.draw do end end + resources :todos, only: [:create], constraints: { id: /\d+/ } + resources :uploads, only: [:create] do collection do get ":secret/:filename", action: :show, as: :show, constraints: { filename: /[^\/]+/ } |