orbit-basic/vendor/built_in_modules/survey/config/routes.rb

23 lines
512 B
Ruby

Rails.application.routes.draw do
namespace :panel do
namespace :survey do
namespace :back_end do
resources :surveys do
collection do
get 'delete'
end
resources :answers, :controller => :surveys_answers do
collection do
get 'delete'
end
end
end
end
namespace :front_end do
resources :surveys
end
end
end
match "/appfront/*path" => redirect("/panel/*path")
end