2014-10-02 06:00:35 +00:00
|
|
|
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
|
2020-07-04 13:36:32 +00:00
|
|
|
get ':id/print', to: 'asks#print'
|
2014-10-02 06:00:35 +00:00
|
|
|
get 'export'
|
2020-03-21 15:36:33 +00:00
|
|
|
get 'setting'
|
2020-07-04 13:36:32 +00:00
|
|
|
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'
|
2020-03-21 15:36:33 +00:00
|
|
|
post 'setting_save'
|
|
|
|
post 'get_new_setting_index'
|
2020-07-04 13:36:32 +00:00
|
|
|
post 'get_new_category_setting_index'
|
2014-10-02 06:00:35 +00:00
|
|
|
post 'export', to: 'asks#do_export'
|
2022-03-18 03:49:11 +00:00
|
|
|
get 'order_fields'
|
|
|
|
post 'update_order_fields'
|
2014-10-02 06:00:35 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
resources :ask_acknowledgements
|
|
|
|
resources :ask_admins
|
|
|
|
end
|
2020-04-30 05:18:02 +00:00
|
|
|
resources :asks #fronted
|
2014-10-02 06:00:35 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|