diff options
author | Joshua Lambert <joshua@gitlab.com> | 2017-03-16 18:45:46 +0000 |
---|---|---|
committer | Joshua Lambert <joshua@gitlab.com> | 2017-03-16 18:45:46 +0000 |
commit | d2f209a60b2ea2d889eaf5142c8d09ba0848a4c3 (patch) | |
tree | 62810ea2d1f8aa1d131e31ad667c39ea0a6d466a /lib/api/groups.rb | |
parent | 83259875939958c6288066a3a4e59a5062b4c9e6 (diff) | |
parent | ce5d1b6fd7ed1aea2d2a675414ba81be624f2bf1 (diff) | |
download | gitlab-ce-29142-add-prometheus-integration-documentation.tar.gz |
Merge branch 'master' into '29142-add-prometheus-integration-documentation'29142-add-prometheus-integration-documentation
# Conflicts:
# doc/install/requirements.md
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index b862ff70b31..8f3799417e3 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -84,7 +84,7 @@ module API params do requires :id, type: String, desc: 'The ID of a group' end - resource :groups do + resource :groups, requirements: { id: %r{[^/]+} } do desc 'Update a group. Available only for users who can administrate groups.' do success Entities::Group end @@ -154,7 +154,7 @@ module API params do requires :project_id, type: String, desc: 'The ID or path of the project' end - post ":id/projects/:project_id" do + post ":id/projects/:project_id", requirements: { project_id: /.+/ } do authenticated_as_admin! group = find_group!(params[:id]) project = find_project!(params[:project_id]) |