2014-01-16 09:14:51 +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'
|
2014-02-11 06:35:55 +00:00
|
|
|
get 'set_import'
|
|
|
|
post 'import'
|
2014-01-16 09:14:51 +00:00
|
|
|
get 'set_answers'
|
|
|
|
get 'jump'
|
|
|
|
get 'duplicate_it'
|
|
|
|
end
|
|
|
|
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'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
2014-02-11 06:35:55 +00:00
|
|
|
end
|