33 lines
952 B
Ruby
33 lines
952 B
Ruby
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
|
|
get 'writing_journal_setting' => "journal_papers#setting"
|
|
|
|
resources :journal_papers do
|
|
collection do
|
|
get 'toggle_hide' => 'journal_papers#toggle_hide'
|
|
end
|
|
end
|
|
|
|
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
|
|
end
|
|
end
|
|
end
|