Sha256: 41607a330ac83f5aecbe3833a8420287fb180a8a0897c988d765655445931100

Contents?: true

Size: 2 KB

Versions: 10

Compression:

Stored size: 2 KB

Contents

Katello::Engine.routes.draw do
  scope :katello, :path => '/katello' do
    match ':kt_path/auto_complete_search', :action => :auto_complete_search, :controller => :auto_complete_search, :via => :get

    resources :sync_management, :only => [:destroy] do
      collection do
        get :index
        get :sync_status
        post :sync
      end
    end

    match '/remote_execution' => 'remote_execution#create', :via => [:post]
  end

  get '/katello/providers/redhat_provider', to: redirect('/redhat_repositories')
  match '/redhat_repositories' => 'react#index', :via => [:get]

  match '/subscriptions' => 'react#index', :via => [:get]
  match '/subscriptions/*page' => 'react#index', :via => [:get]

  match '/module_streams' => 'react#index', :via => [:get]
  match '/module_streams/*page' => 'react#index', :via => [:get]

  match '/legacy_ansible_collections' => 'react#index', :via => [:get]
  match '/legacy_ansible_collections/*page' => 'react#index', :via => [:get]

  match '/content_views' => 'react#index', :via => [:get]
  match '/content_views/*page' => 'react#index', :via => [:get]

  match '/content' => 'react#index', :via => [:get]

  match '/alternate_content_sources' => 'react#index', :via => [:get]
  match '/alternate_content_sources/*page' => 'react#index', :via => [:get]

  Katello::RepositoryTypeManager.generic_ui_content_types(false).each do |type|
    get "/#{type.pluralize}", to: redirect("/content/#{type.pluralize}")
    get "/#{type.pluralize}/:page", to: redirect("/content/#{type.pluralize}/%{page}")
    match "/content/#{type.pluralize}" => 'react#index', :via => [:get]
    match "/content/#{type.pluralize}/*page" => 'react#index', :via => [:get]
  end

  match '/labs' => 'react#index', :via => [:get]
  match '/labs/*page' => 'react#index', :via => [:get]
  match '/organization_select' => 'react#index', :via => [:get]

  get '/change_host_content_source', to: 'react#index'
  constraints(id: /[^\/]+/) do
    get 'new/hosts/:id/content', to: redirect('new/hosts/%{id}#/Content')
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-4.14.2 config/routes.rb
katello-4.15.0 config/routes.rb
katello-4.15.0.rc2 config/routes.rb
katello-4.15.0.rc1 config/routes.rb
katello-4.14.1 config/routes.rb
katello-4.14.0 config/routes.rb
katello-4.14.0.rc3 config/routes.rb
katello-4.14.0.rc2 config/routes.rb
katello-4.14.0.rc1.1 config/routes.rb
katello-4.14.0.rc1 config/routes.rb