summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-08 09:29:19 +0100
committerPhil Hughes <me@iamphill.com>2016-06-14 08:36:07 +0100
commit20d382a891d92197620eb4e72526577a916292d7 (patch)
treebf9dcaddb8c33e9d7c6e15f07a3ecef1d010933f /config/routes.rb
parentf8a8999a2069dedd9ca21bde2b726a077c057576 (diff)
downloadgitlab-ce-20d382a891d92197620eb4e72526577a916292d7.tar.gz
Moved todo creation over to project todos controller
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
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: /[^\/]+/ }