personal-conference/config/routes.rb

45 lines
1.8 KiB
Ruby
Raw Normal View History

2014-06-04 04:55:35 +00:00
Rails.application.routes.draw do
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
WritingConferenceSetting.create if WritingConferenceSetting.count == 0
2014-06-04 04:55:35 +00:00
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
post 'writing_conference_update_setting' => "writing_conferences#update_setting"
patch 'writing_conference_update_setting' => "writing_conferences#update_setting"
2014-07-01 10:19:07 +00:00
get 'writing_conference_setting' => "writing_conferences#setting"
2015-12-15 11:33:41 +00:00
get 'writing_conferences/download_excel_format' => 'writing_conferences#excel_format'
post 'writing_conferences/import_from_excel' => 'writing_conferences#import_from_excel'
2014-07-01 10:19:07 +00:00
resources :writing_conferences do
collection do
post 'merge_process' => 'writing_conferences#merge_process'
get 'merge' => 'writing_conferences#merge'
2014-07-01 10:19:07 +00:00
get 'toggle_hide' => 'writing_conferences#toggle_hide'
2016-06-02 09:57:23 +00:00
get 'analysis'
get 'analysis_report'
get "download_excel"
2014-07-01 10:19:07 +00:00
end
end
resources :members do
collection do
scope '(:name-:uid)' do
resources :writing_conferences do
collection do
get 'frontend_setting' => 'writing_conferences#frontend_setting'
post 'update_frontend_setting' => 'writing_conferences#update_frontend_setting'
end
end
end
end
end
resources :conference_paper_types
resources :conference_paper_levels
resources :conference_author_types
resources :tags
2014-06-04 04:55:35 +00:00
end
2016-04-01 05:58:56 +00:00
get "/xhr/personal_conference/get_fields_for_index" => "personal_conferences#get_fields_for_index"
post "/xhr/personal_conference/save_index_fields" => "personal_conferences#save_index_fields"
2014-06-04 04:55:35 +00:00
end
end