Commit c4c25946 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Move project settings under /-/ scope

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent eebd74d6
...@@ -442,16 +442,23 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -442,16 +442,23 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end end
end end
end end
namespace :settings do
get :members, to: redirect("%{namespace_id}/%{project_id}/project_members") scope '-' do
resource :ci_cd, only: [:show, :update], controller: 'ci_cd' do namespace :settings do
post :reset_cache get :members, to: redirect("%{namespace_id}/%{project_id}/project_members")
put :reset_registration_token
end resource :ci_cd, only: [:show, :update], controller: 'ci_cd' do
resource :integrations, only: [:show] post :reset_cache
resource :repository, only: [:show], controller: :repository do put :reset_registration_token
post :create_deploy_token, path: 'deploy_token/create' end
post :cleanup
resource :operations, only: [:show, :update]
resource :integrations, only: [:show]
resource :repository, only: [:show], controller: :repository do
post :create_deploy_token, path: 'deploy_token/create'
post :cleanup
end
end end
end end
...@@ -465,10 +472,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -465,10 +472,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
# its preferable to keep it below all other project routes # its preferable to keep it below all other project routes
draw :wiki draw :wiki
draw :repository draw :repository
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