Skip to content

Commit

Permalink
Add excluded request routes into staging namespace
Browse files Browse the repository at this point in the history
It makes sense to the routes into the staging namespace.

It was required here:

#6336

Co-authored-by: Moisés Déniz Alemán <mdeniz@suse.com>
Co-authored-by: David Kang <dkang@suse.com>
Co-authored-by: Christian Bruckmayer <cbruckmayer@suse.com>
  • Loading branch information
4 people committed Nov 22, 2018
1 parent 4ecdd4d commit 07368dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -736,11 +736,11 @@ def self.public_or_about_path?(request)
get 'staged_requests' => 'staged_requests#index', constraints: cons
resource :staged_requests, controller: 'staged_requests', only: [:create, :destroy], constraints: cons
end
end

controller 'staging/excluded_requests' do
post 'staging_excluded_requests/:number/:project_name' => :create, constraints: cons
delete 'staging_excluded_requests/:number' => :destroy, constraints: cons
controller 'excluded_requests' do
post 'staging_excluded_requests/:number/:project_name' => :create, constraints: cons
delete 'staging_excluded_requests/:number' => :destroy, constraints: cons
end
end

controller :source_attribute do
Expand Down

0 comments on commit 07368dc

Please sign in to comment.