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