Update routes.rb
This commit is contained in:
parent
a6d659b708
commit
7f1ec59a92
|
@ -1,39 +1,40 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
|
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
|
||||||
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
||||||
namespace :admin do
|
namespace :admin do
|
||||||
get 'writing_journal_setting' => "journal_papers#setting"
|
get 'writing_journal_setting' => "journal_papers#setting"
|
||||||
get 'journal_papers/download_excel_format' => 'journal_papers#excel_format'
|
get 'journal_papers/download_excel_format' => 'journal_papers#excel_format'
|
||||||
post 'journal_papers/import_from_excel' => 'journal_papers#import_from_excel'
|
post 'journal_papers/import_from_excel' => 'journal_papers#import_from_excel'
|
||||||
|
|
||||||
resources :journal_papers do
|
resources :journal_papers do
|
||||||
collection do
|
collection do
|
||||||
get 'toggle_hide' => 'journal_papers#toggle_hide'
|
get 'merge' => 'journal_papers#merge'
|
||||||
get 'analysis'
|
get 'toggle_hide' => 'journal_papers#toggle_hide'
|
||||||
get 'analysis_report'
|
get 'analysis'
|
||||||
get "download_excel"
|
get 'analysis_report'
|
||||||
end
|
get "download_excel"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
resources :members do
|
|
||||||
collection do
|
resources :members do
|
||||||
scope '(:name-:uid)' do
|
collection do
|
||||||
resources :journal_papers do
|
scope '(:name-:uid)' do
|
||||||
collection do
|
resources :journal_papers do
|
||||||
get 'frontend_setting' => 'journal_papers#frontend_setting'
|
collection do
|
||||||
post 'update_frontend_setting' => 'journal_papers#update_frontend_setting'
|
get 'frontend_setting' => 'journal_papers#frontend_setting'
|
||||||
|
post 'update_frontend_setting' => 'journal_papers#update_frontend_setting'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
resources :journal_levels
|
||||||
|
resources :journal_paper_author_types
|
||||||
resources :journal_levels
|
resources :journal_paper_types
|
||||||
resources :journal_paper_author_types
|
resources :journal_paper_intros
|
||||||
resources :journal_paper_types
|
end
|
||||||
resources :journal_paper_intros
|
get "/xhr/personal_journal/get_fields_for_index" => "personal_journals#get_fields_for_index"
|
||||||
end
|
post "/xhr/personal_journal/save_index_fields" => "personal_journals#save_index_fields"
|
||||||
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"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue