Sha256: d7714c540be795442bc62dd34e726eb21ebfe37c0a8aa53de4f84739da2a947a

Contents?: true

Size: 1.53 KB

Versions: 9

Compression:

Stored size: 1.53 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

    resources :products, :only => [] do
      member do
        get :available_repositories
        put :toggle_repository
      end
      collection do
        get :all
      end
    end

    resources :providers do
      collection do
        get :redhat_provider
        get :redhat_provider_tab
      end
    end

    match '/providers/:id' => 'providers#update', :via => [:put, :post]

    resources :organizations do
      collection do
        get :auto_complete_search
        get :items
        get :default_label
      end
      member do
        get :show
        get :events
        get :download_debug_certificate
      end
    end
    match '/organizations/:id/edit' => 'organizations#update', :via => :put

    resources :search, :only => {} do
      get 'show', :on => :collection

      get 'history', :on => :collection
      delete 'history' => 'search#destroy_history', :on => :collection

      get 'favorite', :on => :collection
      post 'favorite' => 'search#create_favorite', :on => :collection
      delete 'favorite/:id' => 'search#destroy_favorite', :on => :collection, :as => 'destroy_favorite'
    end

    match '/403' => 'application#permission_denied', :via => :get
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 config/routes.rb
katello-2.4.4 config/routes.rb
katello-2.4.3 config/routes.rb
katello-2.4.2 config/routes.rb
katello-2.4.1 config/routes.rb
katello-2.4.0 config/routes.rb
katello-2.4.0.rc3 config/routes.rb
katello-2.4.0.rc2 config/routes.rb
katello-2.4.0.rc1 config/routes.rb