Wrap additional routes by dash(-). And remove those routes from path_regex.rb.
This commit is contained in:
parent
d633bf0afb
commit
f8a2f6f115
|
@ -24,12 +24,14 @@ scope(path: 'groups/*group_id',
|
||||||
post :toggle_subscription, on: :member
|
post :toggle_subscription, on: :member
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scope path: '-' do
|
||||||
namespace :settings do
|
namespace :settings do
|
||||||
resource :ci_cd, only: [:show], controller: 'ci_cd'
|
resource :ci_cd, only: [:show], controller: 'ci_cd'
|
||||||
end
|
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',
|
||||||
controller: :groups,
|
controller: :groups,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue