diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-22 20:08:33 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-23 20:38:35 -0500 |
commit | b0498c176fa134761d899c9b369be12f1ca789c5 (patch) | |
tree | dcf223813e0b1bb5932a94793a6f827771517a96 /config/routes/admin.rb | |
parent | ed16c351c5acdf1ad2e401e72490320d06af6e91 (diff) | |
download | gitlab-ce-b0498c176fa134761d899c9b369be12f1ca789c5.tar.gz |
Remove changes that are not absolutely necessarydm-fix-routes
Diffstat (limited to 'config/routes/admin.rb')
-rw-r--r-- | config/routes/admin.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes/admin.rb b/config/routes/admin.rb index 6e34dd3a2eb..b1b6ef33a47 100644 --- a/config/routes/admin.rb +++ b/config/routes/admin.rb @@ -36,7 +36,7 @@ namespace :admin do scope(path: 'groups/*id', controller: :groups, - constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom)/ }) do + constraints: { id: Gitlab::Regex.namespace_route_regex, format: /(html|json|atom)/ }) do scope(as: :group) do put :members_update @@ -70,10 +70,10 @@ namespace :admin do scope(path: 'projects/*namespace_id', as: :namespace, - constraints: { namespace_id: Gitlab::PathRegex.full_namespace_route_regex }) do + constraints: { namespace_id: Gitlab::Regex.namespace_route_regex }) do resources(:projects, path: '/', - constraints: { id: Gitlab::PathRegex.project_route_regex }, + constraints: { id: Gitlab::Regex.project_route_regex }, only: [:show]) do member do |