summaryrefslogtreecommitdiff
path: root/config/routes/repository.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2019-06-24 11:53:17 -0500
committerRobert Speicher <rspeicher@gmail.com>2019-06-26 11:29:41 -0500
commit2d738b6f84e7f453202d24f615581e1fb3130e51 (patch)
treef3ddf9d2b83d0f23250f0b299905cc66dd456816 /config/routes/repository.rb
parent5ec2146c4a9b1be510055127375804c8ef652ed3 (diff)
downloadgitlab-ce-2d738b6f84e7f453202d24f615581e1fb3130e51.tar.gz
Copy routes from EE
This ensures all routes are defined in both CE and EE, with EE-specific routes being wrapped in `Gitlab.ee` blocks.
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