diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-15 21:09:24 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-16 20:00:24 +0300 |
commit | 63360adeae3ba5b302b711c73b6439956d274cde (patch) | |
tree | f547b1bc271a1b9c0f8df616cfb1fb5c2574c43a /lib/api/v3/projects.rb | |
parent | c9abdadd7a08f972d5a12472f9f5ac443e37a6ac (diff) |
Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced API routes
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api/v3/projects.rb')
-rw-r--r-- | lib/api/v3/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/projects.rb b/lib/api/v3/projects.rb index 47bfc12035a..b753dbab381 100644 --- a/lib/api/v3/projects.rb +++ b/lib/api/v3/projects.rb @@ -234,7 +234,7 @@ module API params do requires :id, type: String, desc: 'The ID of a project' end - resource :projects, requirements: { id: /[^\/]+/ } do + resource :projects, requirements: { id: %r{[^/]+} } do desc 'Get a single project' do success ::API::V3::Entities::ProjectWithAccess end |