Sha256: 28635d3596d0e546c048291fae8bf7ff08619e8cd4b5b1cb6bfd1572c9cb5f30

Contents?: true

Size: 799 Bytes

Versions: 30

Compression:

Stored size: 799 Bytes

Contents

Rails.application.routes.draw do
  scope :azure_rm, :path => '/azure_rm' do
    get :sizes, :controller => :hosts
    get :subnets, :controller => :hosts
    get :storage_accts, :controller => :hosts
    get :vnets, :controller => :hosts
  end
  namespace :api, :defaults => { :format => 'json' } do
    scope "(:apiv)", :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2, :default => true) do
      resources :compute_resources, :except => [:new, :edit] do
        get :available_resource_groups, :on => :member
        get :available_subnets, :on => :member
        get :available_vnets, :on => :member
        get '(:region_id)/available_sizes', :to => 'compute_resources#available_sizes', :on => :member
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
foreman_azure_rm-3.0.1 config/routes.rb
foreman_azure_rm-3.0.0 config/routes.rb
foreman_azure_rm-2.3.0 config/routes.rb
foreman_azure_rm-2.2.11 config/routes.rb
foreman_azure_rm-2.2.10 config/routes.rb
foreman_azure_rm-2.2.9 config/routes.rb
foreman_azure_rm-2.2.8 config/routes.rb
foreman_azure_rm-2.2.7 config/routes.rb
foreman_azure_rm-2.2.6 config/routes.rb
foreman_azure_rm-2.2.5 config/routes.rb
foreman_azure_rm-2.2.4 config/routes.rb
foreman_azure_rm-2.2.3 config/routes.rb
foreman_azure_rm-2.2.2 config/routes.rb
foreman_azure_rm-2.2.1 config/routes.rb
foreman_azure_rm-2.1.3 config/routes.rb
foreman_azure_rm-2.2.0 config/routes.rb
foreman_azure_rm-2.1.2 config/routes.rb
foreman_azure_rm-2.1.1 config/routes.rb
foreman_azure_rm-2.1.0 config/routes.rb
foreman_azure_rm-2.0.8 config/routes.rb