Commit f8a2f6f1 authored by Shinya Maeda's avatar Shinya Maeda

Wrap additional routes by dash(-). And remove those routes from path_regex.rb.

parent d633bf0a
...@@ -24,11 +24,13 @@ scope(path: 'groups/*group_id', ...@@ -24,11 +24,13 @@ scope(path: 'groups/*group_id',
post :toggle_subscription, on: :member post :toggle_subscription, on: :member
end end
namespace :settings do scope path: '-' do
resource :ci_cd, only: [:show], controller: 'ci_cd' namespace :settings do
end 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 end
scope(path: 'groups/*id', scope(path: 'groups/*id',
......
...@@ -129,8 +129,6 @@ module Gitlab ...@@ -129,8 +129,6 @@ module Gitlab
pipeline_quota pipeline_quota
projects projects
subgroups subgroups
settings
variables
].freeze ].freeze
ILLEGAL_PROJECT_PATH_WORDS = PROJECT_WILDCARD_ROUTES ILLEGAL_PROJECT_PATH_WORDS = PROJECT_WILDCARD_ROUTES
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment