Skip to content

Commit

Permalink
Introduce staging namespace in routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Nov 13, 2018
1 parent e415d23 commit d623ad8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ def self.public_or_about_path?(request)
get 'published/:project(/:repository(/:arch(/:binary)))' => 'published#index', constraints: cons
get 'published/' => 'source#index', via: :get

resources :staging_workflows, except: [:index, :update], controller: 'webui/staging_workflows', constraints: cons do
resources :staging_projects, only: [:create, :destroy], controller: 'webui/staging_workflows/staging_projects', param: :project_name, constraints: cons
resources :staging_workflows, except: [:index, :update], controller: 'webui/staging/workflows', constraints: cons do
resources :staging_projects, only: [:create, :destroy], controller: 'webui/staging/projects', param: :project_name, constraints: cons
end

constraints(APIMatcher) do
Expand Down Expand Up @@ -730,7 +730,7 @@ def self.public_or_about_path?(request)
end

# StagingWorkflow API
get 'staging_project/:project/staged_requests' => 'staging_project/staged_requests#index', constraints: cons, as: 'staged_requests'
get 'staging_project/:project/staged_requests' => 'staging/staged_requests#index', constraints: cons, as: 'staged_requests'

controller :source_attribute do
get 'source/:project(/:package(/:binary))/_attribute(/:attribute)' => :show, constraints: cons
Expand Down

0 comments on commit d623ad8

Please sign in to comment.