Sha256: 39716947611294ef03c8f09dca5c1978737acdf1009c67cda5d37ff76515d584

Contents?: true

Size: 1.26 KB

Versions: 10

Compression:

Stored size: 1.26 KB

Contents

Rails.application.routes.draw do
  resources :containers, :only => [:index, :new, :show, :destroy] do
    member do
      post :commit
      put :power
    end
  end

  resources :wizard_states, :only => [] do
    resources :steps, :controller => 'containers/steps', :only => [:show, :update]
  end

  resources :image_search, :only => [] do
    member do
      get :auto_complete_repository_name
      get :auto_complete_image_tag
      get :search_repository
    end
  end

  resources :registries, :except => [:show]

  scope path: '/docker', as: :foreman_docker do
    namespace :api, :defaults => { :format => 'json' } do
      scope "(:apiv)", :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v2/,
                       :constraints => ApiConstraints.new(:version => 2) do
        resources :containers, :only => [:index, :create, :show, :destroy] do
          member do
            get :logs
            put :power
          end
        end
        resources :compute_resources, :only => [] do
          resources :containers, :only => [:index, :create, :show, :destroy] do
            member do
              get :logs
              put :power
            end
          end
        end
        resources :registries, :except => [:new, :edit]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_docker-5.0.0 config/routes.rb
foreman_docker-4.1.1 config/routes.rb
foreman_docker-4.1.0 config/routes.rb
foreman_docker-4.0.0 config/routes.rb
foreman_docker-3.2.1 config/routes.rb
foreman_docker-3.2.0 config/routes.rb
foreman_docker-3.1.0 config/routes.rb
foreman_docker-3.0.0 config/routes.rb
foreman_docker-2.1.1 config/routes.rb
foreman_docker-2.1.0 config/routes.rb