personal-journal/config/routes.rb

40 lines
1.4 KiB
Ruby
Raw Normal View History

2014-06-04 03:55:13 +00:00
Rails.application.routes.draw do
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
2015-01-09 07:30:13 +00:00
get 'writing_journal_setting' => "journal_papers#setting"
2015-12-11 11:06:33 +00:00
get 'journal_papers/download_excel_format' => 'journal_papers#excel_format'
post 'journal_papers/import_from_excel' => 'journal_papers#import_from_excel'
2014-08-11 11:16:52 +00:00
2015-01-09 07:30:13 +00:00
resources :journal_papers do
collection do
get 'toggle_hide' => 'journal_papers#toggle_hide'
2016-06-01 08:04:19 +00:00
get 'analysis' => 'journal_papers#analysis'
get 'analysis_report' => 'journal_papers#analysis_report'
2016-06-01 11:39:51 +00:00
get "download_excel"
2015-01-09 07:30:13 +00:00
end
end
2014-08-11 11:16:52 +00:00
2015-01-09 07:30:13 +00:00
resources :members do
collection do
scope '(:name-:uid)' do
resources :journal_papers do
collection do
get 'frontend_setting' => 'journal_papers#frontend_setting'
post 'update_frontend_setting' => 'journal_papers#update_frontend_setting'
end
end
end
end
end
resources :journal_levels
resources :journal_paper_author_types
resources :journal_paper_types
resources :journal_paper_intros
2014-06-04 03:55:13 +00:00
end
2016-04-01 05:57:16 +00:00
get "/xhr/personal_journal/get_fields_for_index" => "personal_journals#get_fields_for_index"
post "/xhr/personal_journal/save_index_fields" => "personal_journals#save_index_fields"
2014-06-04 03:55:13 +00:00
end
end