summaryrefslogtreecommitdiff
path: root/config/routes/repository.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-06-27 06:01:49 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-06-27 06:01:49 +0000
commitbe099306ef21c2e2360cc2d49a1a61ce4d2b3594 (patch)
tree1b872bbabbbc93805b1f0521b6d599fc56ef60fd /config/routes/repository.rb
parentfa54a486eb6d6a71b015fce72decf33b011a0b2d (diff)
parent8e42fe9450532321d2af24a3aaad757b863636e6 (diff)
downloadgitlab-ce-be099306ef21c2e2360cc2d49a1a61ce4d2b3594.tar.gz
Merge branch 'rs-ee-only-routes-2' into 'master'
CE-EE parity for routes See merge request gitlab-org/gitlab-ce!29994
Diffstat (limited to 'config/routes/repository.rb')
-rw-r--r--config/routes/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/repository.rb b/config/routes/repository.rb
index b96315bfe8b..1ea0ae72614 100644
--- a/config/routes/repository.rb
+++ b/config/routes/repository.rb
@@ -58,7 +58,7 @@ scope format: false do
resource :release, controller: 'tags/releases', only: [:edit, :update]
end
- resources :protected_branches, only: [:index, :show, :create, :update, :destroy]
+ resources :protected_branches, only: [:index, :show, :create, :update, :destroy, :patch], constraints: { id: Gitlab::PathRegex.git_reference_regex }
resources :protected_tags, only: [:index, :show, :create, :update, :destroy]
end