26 lines
472 B
Ruby
26 lines
472 B
Ruby
Rails.application.routes.draw do
|
|
|
|
namespace :panel do
|
|
namespace :ask do
|
|
namespace :back_end do
|
|
resources :ask_questions do
|
|
collection do
|
|
get 'delete'
|
|
get 'export'
|
|
post 'export', to: 'ask_questions#do_export'
|
|
end
|
|
resources :ask_replies
|
|
end
|
|
|
|
|
|
resources :ask_categories
|
|
end
|
|
|
|
namespace :front_end do
|
|
resources :ask_questions
|
|
end
|
|
end
|
|
end
|
|
|
|
end
|