Orbit/vendor/built_in_modules/survey/config/routes.rb

34 lines
752 B
Ruby
Raw Normal View History

2013-04-29 08:06:45 +00:00
Rails.application.routes.draw do
namespace :panel do
namespace :survey do
namespace :back_end do
resources :surveys do
collection do
get 'delete'
end
member do
get 'export'
get 'set_answers'
get 'jump'
get 'duplicate_it'
end
2013-04-29 08:06:45 +00:00
resources :answers, :controller => :surveys_answers do
collection do
get 'delete'
end
end
end
end
namespace :front_end do
resources :surveys do
member do
get 'result'
get 'info'
end
end
2013-04-29 08:06:45 +00:00
end
end
end
match "/appfront/*path" => redirect("/panel/*path")
end