academic_advising/config/routes.rb

38 lines
1.4 KiB
Ruby
Raw Normal View History

2014-06-04 07:12:58 +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
2021-02-07 14:56:22 +00:00
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'
2014-07-02 09:37:34 +00:00
2021-02-07 14:56:22 +00:00
resources :academic_advisings do
2014-07-02 09:37:34 +00:00
collection do
2021-02-07 14:56:22 +00:00
get 'toggle_hide' => 'academic_advisings#toggle_hide'
2016-06-06 09:15:12 +00:00
get 'analysis'
get 'analysis_report'
get "download_excel"
2014-07-02 09:37:34 +00:00
end
end
resources :members do
collection do
scope '(:name-:uid)' do
2021-02-07 14:56:22 +00:00
resources :academic_advisings do
2014-07-02 09:37:34 +00:00
collection do
2021-02-07 14:56:22 +00:00
get 'frontend_setting' => 'academic_advisings#frontend_setting'
post 'update_frontend_setting' => 'academic_advisings#update_frontend_setting'
2014-07-02 09:37:34 +00:00
end
end
end
end
end
2021-02-07 14:56:22 +00:00
resources :academic_advising_types
post "academic_advising_types/update_order" => "academic_advising_types#update_order"
2014-06-04 07:12:58 +00:00
end
2021-02-07 14:56:22 +00:00
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"
2014-06-04 07:12:58 +00:00
end
end