Commit 4ec744a7 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'dz-scope-approvers-routes' into 'master'

Move approver routes under - scope

See merge request gitlab-org/gitlab!24282
parents 43a868d8 a2fcdd3d
......@@ -84,6 +84,10 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
namespace :analytics do
resources :code_reviews, only: [:index]
end
resources :approvers, only: :destroy
resources :approver_groups, only: :destroy
resources :push_rules, constraints: { id: /\d+/ }, only: [:update]
end
# End of the /-/ scope.
......@@ -127,10 +131,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
post '/restore' => '/projects#restore', as: :restore
resources :approvers, only: :destroy
resources :approver_groups, only: :destroy
resources :push_rules, constraints: { id: /\d+/ }, only: [:update]
resources :pipelines, only: [] do
member do
get :security
......
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