2013-10-11 22:22:52 -04:00
|
|
|
TestApp::Application.routes.draw do
|
|
|
|
|
2013-10-12 04:56:45 -04:00
|
|
|
mount JasmineRails::Engine => "/specs" if defined?(JasmineRails)
|
2013-10-11 22:22:52 -04:00
|
|
|
|
|
|
|
root :to => 'main#index'
|
2013-10-12 07:20:23 -04:00
|
|
|
|
2013-10-24 05:33:12 -04:00
|
|
|
resources :main, :controller => 'Main' do
|
2014-02-15 04:32:32 -05:00
|
|
|
collection do
|
|
|
|
get :prevent
|
|
|
|
get :basic_params
|
2013-10-24 05:33:12 -04:00
|
|
|
get :json_response
|
|
|
|
get :js_response
|
|
|
|
get :xml_response
|
|
|
|
get :file_response
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-10-12 07:20:23 -04:00
|
|
|
|
|
|
|
namespace :admin do
|
2014-02-15 05:07:44 -05:00
|
|
|
resources :foos
|
2013-10-12 07:20:23 -04:00
|
|
|
end
|
2013-10-11 22:22:52 -04:00
|
|
|
end
|