diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-03 23:46:08 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-07 15:35:12 +0900 |
commit | f8a2f6f11598b6565ba2a0bb143f7d1e0f07f610 (patch) | |
tree | 7a05c81ff484473434ddc4f1faf39e99f71f3396 /config/routes/group.rb | |
parent | d633bf0afbcd18e8762eef58d12ec3a2bbb1a7bd (diff) | |
download | gitlab-ce-f8a2f6f11598b6565ba2a0bb143f7d1e0f07f610.tar.gz |
Wrap additional routes by dash(-). And remove those routes from path_regex.rb.
Diffstat (limited to 'config/routes/group.rb')
-rw-r--r-- | config/routes/group.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb index bd04ad51076..e578dd8b082 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -24,11 +24,13 @@ scope(path: 'groups/*group_id', post :toggle_subscription, on: :member end - namespace :settings do - resource :ci_cd, only: [:show], controller: 'ci_cd' - end + scope path: '-' do + namespace :settings do + resource :ci_cd, only: [:show], controller: 'ci_cd' + end - resources :variables, only: [:index, :show, :update, :create, :destroy] + resources :variables, only: [:index, :show, :update, :create, :destroy] + end end scope(path: 'groups/*id', |