Object
# File lib/console/rails/routes.rb, line 4 def openshift_console(*args) opts = args.extract_options! openshift_console_routes openshift_account_routes unless (Array(opts[:skip]).include? :account || Console.config.disable_account) root :to => 'console_index#index', :via => :get, :as => :console end
# File lib/console/rails/routes.rb, line 55 def openshift_account_routes # Account specific resources resource :account, :controller => :account, :only => [:show] end
# File lib/console/rails/routes.rb, line 13 def openshift_console_routes match 'help' => 'console_index#help', :via => :get, :as => 'console_help' match 'unauthorized' => 'console_index#unauthorized', :via => :get, :as => 'unauthorized' match 'server_unavailable' => 'console_index#server_unavailable', :via => :get, :as => 'server_unavailable' # Application specific resources resources :application_types, :only => [:show, :index], :id => /[^\/]+/ resources :applications do resources :cartridges, :only => [:show, :create, :index], :id => /[^\/]+/ resources :aliases, :only => [:show, :create, :index, :destroy, :update], :id => /[^\/]+/ do get :delete end resources :cartridge_types, :only => [:show, :index], :id => /[^\/]+/ resource :restart, :only => [:show, :update], :id => /[^\/]+/ resource :building, :controller => :building, :id => /[^\/]+/, :only => [:show, :new, :destroy, :create] do get :delete end resource :scaling, :controller => :scaling, :only => [:show, :new] do get :delete resources :cartridges, :controller => :scaling, :only => [:update], :id => /[^\/]+/, :format => false #, :format => /json|csv|xml|yaml/ end resource :storage, :controller => :storage, :only => [:show] do resources :cartridges, :controller => :storage, :only => [:update], :id => /[^\/]+/, :format => false #, :format => /json|csv|xml|yaml/ end member do get :delete get :get_started end end resource :settings, :only => :show resource :domain, :id => /[^\/]+/, :only => [:new, :create, :edit, :update] resources :keys, :id => /[^\/]+/, :only => [:new, :create, :destroy] resources :authorizations, :id => /[^\/]+/, :except => :index match 'authorizations' => 'authorizations#destroy_all', :via => :delete end
Generated with the Darkfish Rdoc Generator 2.