Commit a2fcdd3d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Move approver routes under - scope

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 7aff1f63
......@@ -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