This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
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
|
2013-05-10 05:04:56 +00:00
|
|
|
member do
|
|
|
|
get 'export'
|
2014-01-23 04:28:31 +00:00
|
|
|
get 'set_import'
|
|
|
|
post 'import'
|
2013-05-10 05:04:56 +00:00
|
|
|
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
|
2013-05-10 05:04:56 +00:00
|
|
|
resources :surveys do
|
|
|
|
member do
|
|
|
|
get 'result'
|
|
|
|
end
|
|
|
|
end
|
2013-04-29 08:06:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
match "/appfront/*path" => redirect("/panel/*path")
|
2014-01-23 04:28:31 +00:00
|
|
|
end
|