Commit daaeff78 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets Committed by Ash McKenzie

Move project settings under /-/ scope

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent a5335a39
...@@ -539,23 +539,24 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -539,23 +539,24 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
resources :audit_events, only: [:index] resources :audit_events, only: [:index]
## EE-specific ## EE-specific
scope '-' do
namespace :settings do namespace :settings do
get :members, to: redirect("%{namespace_id}/%{project_id}/project_members") get :members, to: redirect("%{namespace_id}/%{project_id}/project_members")
resource :ci_cd, only: [:show, :update], controller: 'ci_cd' do resource :ci_cd, only: [:show, :update], controller: 'ci_cd' do
post :reset_cache post :reset_cache
put :reset_registration_token put :reset_registration_token
end end
resource :integrations, only: [:show]
resource :slack, only: [:destroy, :edit, :update] do resource :operations, only: [:show, :update]
get :slack_auth resource :integrations, only: [:show]
end
resource :repository, only: [:show], controller: :repository do resource :repository, only: [:show], controller: :repository do
post :create_deploy_token, path: 'deploy_token/create' post :create_deploy_token, path: 'deploy_token/create'
post :cleanup post :cleanup
end end
end end
end
resources :error_tracking, only: [:index], controller: :error_tracking do resources :error_tracking, only: [:index], controller: :error_tracking do
collection do collection do
...@@ -571,10 +572,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -571,10 +572,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
## EE-specific ## EE-specific
resources :managed_licenses, only: [:index, :show, :new, :create, :edit, :update, :destroy] resources :managed_licenses, only: [:index, :show, :new, :create, :edit, :update, :destroy]
## EE-specific ## EE-specific
namespace :settings do
resource :operations, only: [:show, :update]
end
end end
resources(:projects, resources(:projects,
......
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