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
|
2015-04-25 05:21:02 -04:00
|
|
|
get :ajax
|
2015-08-28 03:13:28 -04:00
|
|
|
get :multiple_calls_1
|
|
|
|
get :multiple_calls_2
|
|
|
|
get :multiple_calls_3
|
|
|
|
get :multiple_calls_4
|
|
|
|
get :multiple_calls_5
|
2013-10-24 05:33:12 -04:00
|
|
|
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
|