ask/config/routes.rb

36 lines
981 B
Ruby

Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do #backend
resources :asks do
collection do
get ':id/print', to: 'asks#print'
get 'export'
get 'setting'
get 'category_setting'
post 'get_category_setting_field'
post 'category_setting_save'
get 'category_setting_delete'
get 'category_print_setting_delete'
post 'category_print_setting_save'
get 'category_print_setting_save'
get 'get_new_category_setting_index'
get 'print_setting'
post 'print_setting_save'
post 'setting_save'
post 'get_new_setting_index'
post 'get_new_category_setting_index'
post 'export', to: 'asks#do_export'
get 'order_fields'
post 'update_order_fields'
end
end
resources :ask_acknowledgements
resources :ask_admins
end
resources :asks #fronted
end
end