diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-01-05 10:43:29 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-01-05 10:43:29 +0100 |
commit | aa3c7219e3b82e815023f8e2b8fccaf600b41e2b (patch) | |
tree | 8d24e2c09a99290680ff274f47b39436cfc93b12 /lib/api/projects.rb | |
parent | 7f2127ee4c9c276717ca04a1f43a9e7927b749ab (diff) | |
parent | 086cfc8685a6489ca032899307c77f828f515fbb (diff) | |
download | gitlab-ce-aa3c7219e3b82e815023f8e2b8fccaf600b41e2b.tar.gz |
Merge branch 'fix-api-lookup-with-usernames-with-dots' of https://gitlab.com/stanhu/gitlab-ce
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index a9e0960872a..0781236cf6d 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -3,7 +3,7 @@ module API class Projects < Grape::API before { authenticate! } - resource :projects do + resource :projects, requirements: { id: /[^\/]+/ } do helpers do def map_public_to_visibility_level(attrs) publik = attrs.delete(:public) |