2016-06-29 06:57:45 +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
|
|
|
|
resources :seminars do
|
|
|
|
member do
|
|
|
|
get 'export'
|
|
|
|
get 'set_write_off'
|
|
|
|
get 'seminar_signup'
|
|
|
|
get 'seminar_item_content'
|
|
|
|
get 'seminar_signup_field'
|
2019-11-26 15:52:52 +00:00
|
|
|
get 'seminar_submission_field'
|
2021-03-17 07:33:31 +00:00
|
|
|
get 'seminar_signup_admin_setting'
|
|
|
|
post 'update_seminar_signup_admin_setting'
|
|
|
|
patch 'update_seminar_signup_admin_setting'
|
|
|
|
get 'get_hide_reviewer'
|
|
|
|
get 'get_reviewer_block'
|
|
|
|
get 'reviewer_setting'
|
|
|
|
post 'update_reviewer_setting'
|
|
|
|
patch 'update_reviewer_setting'
|
2016-06-29 06:57:45 +00:00
|
|
|
end
|
|
|
|
end
|
2021-03-17 07:33:31 +00:00
|
|
|
get 'seminar/enquiry_for_applicants' => "seminars#enquiry_for_applicants"
|
|
|
|
post 'seminar/update_seminar_review' => "seminars#update_seminar_review"
|
2016-06-29 06:57:45 +00:00
|
|
|
resources :seminar_items do
|
|
|
|
collection do
|
|
|
|
post 'delete_items'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
resources :seminar_agreements
|
|
|
|
resources :seminar_signups
|
|
|
|
resources :seminar_item_contents
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :seminars do
|
|
|
|
collection do
|
|
|
|
get ':slug_title-:uid', to: 'seminars#show'
|
|
|
|
post 'con_login_proc', to: 'seminars#con_login_proc'
|
|
|
|
post 'con_logout_proc', to: 'seminars#con_logout_proc'
|
|
|
|
post 'add_file_proc', to: 'seminars#add_file_proc'
|
|
|
|
post 'edit_file_proc', to: 'seminars#edit_file_proc'
|
|
|
|
post 'del_file', to: 'seminars#del_file'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|