summaryrefslogtreecommitdiff
path: root/lib/api/todos.rb
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-09-03 16:09:59 -0500
committerJose Ivan Vargas <jvargas@gitlab.com>2017-09-03 16:09:59 -0500
commitb623807682022a54344d8213d6f1c902be6ade37 (patch)
tree478ee3a25d67cb452aac09cfd42967fcfc7c22b9 /lib/api/todos.rb
parent28060caa0ade7566a38e3ed17f2db8bf9116dc1b (diff)
parent81002745184df28fc9d969afc524986279c653bb (diff)
downloadgitlab-ce-b623807682022a54344d8213d6f1c902be6ade37.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'lib/api/todos.rb')
-rw-r--r--lib/api/todos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/todos.rb b/lib/api/todos.rb
index 55191169dd4..ffccfebe752 100644
--- a/lib/api/todos.rb
+++ b/lib/api/todos.rb
@@ -12,7 +12,7 @@ module API
params do
requires :id, type: String, desc: 'The ID of a project'
end
- resource :projects, requirements: { id: %r{[^/]+} } do
+ resource :projects, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do
ISSUABLE_TYPES.each do |type, finder|
type_id_str = "#{type.singularize}_iid".to_sym