38 lines
1.4 KiB
Ruby
38 lines
1.4 KiB
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 'academic_advising_setting' => "academic_advisings#setting"
|
|
get 'academic_advisings/download_excel_format' => 'academic_advisings#excel_format'
|
|
post 'academic_advisings/import_from_excel' => 'academic_advisings#import_from_excel'
|
|
|
|
resources :academic_advisings do
|
|
collection do
|
|
get 'toggle_hide' => 'academic_advisings#toggle_hide'
|
|
get 'analysis'
|
|
get 'analysis_report'
|
|
get "download_excel"
|
|
end
|
|
end
|
|
|
|
resources :members do
|
|
collection do
|
|
scope '(:name-:uid)' do
|
|
resources :academic_advisings do
|
|
collection do
|
|
get 'frontend_setting' => 'academic_advisings#frontend_setting'
|
|
post 'update_frontend_setting' => 'academic_advisings#update_frontend_setting'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
resources :academic_advising_types
|
|
post "academic_advising_types/update_order" => "academic_advising_types#update_order"
|
|
end
|
|
get "/xhr/academic_advising/get_fields_for_index" => "academic_advisings#get_fields_for_index"
|
|
post "/xhr/academic_advising/save_index_fields" => "academic_advisings#save_index_fields"
|
|
end
|
|
end
|