olympiamanagement/config/routes.rb

44 lines
2.3 KiB
Ruby
Raw Normal View History

2020-01-22 14:03:38 +00:00
Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
get 'olympiamanagements' , to: 'olympiamanagements#index'
get 'olympiamanagements/add_school_data' , to: 'olympiamanagements#add_school_data'
get 'olympiamanagements/school_data_list' , to: 'olympiamanagements#school_data_list'
get 'olympiamanagements/class_setting' , to: 'olympiamanagements#class_setting'
get 'olympiamanagements/sign_up_setting' , to: 'olympiamanagements#sign_up_setting'
get 'olympiamanagements/export_school_connection_data' , to: 'olympiamanagements#export_school_connection_data'
get 'olympiamanagements/export_sign_up_student_data' , to: 'olympiamanagements#export_sign_up_student_data'
get 'olympiamanagements/download_scan_file_of_certificate' , to: 'olympiamanagements#download_scan_file_of_certificate'
get 'olympiamanagements/import_editing_number_of_school_class' , to: 'olympiamanagements#import_editing_number_of_school_class'
post 'olympiamanagements/update_school_data' , to: 'olympiamanagements#update_school_data'
patch 'olympiamanagements/update_school_data' , to: 'olympiamanagements#update_school_data'
get 'olympiamanagements/update_school_data' , to: 'olympiamanagements#update_school_data'
2020-01-31 10:52:53 +00:00
post 'olympiamanagements/update_sign_up_data' , to: 'olympiamanagements#update_sign_up_data'
patch 'olympiamanagements/update_sign_up_data' , to: 'olympiamanagements#update_sign_up_data'
get 'olympiamanagements/update_sign_up_data' , to: 'olympiamanagements#update_sign_up_data'
get 'olympiamanagements/download_import_file' , to: 'olympiamanagements#download_import_file'
2020-02-04 16:37:03 +00:00
get 'olympiamanagements/sign_up_student_data_list' , to: 'olympiamanagements#sign_up_student_data_list'
2020-01-22 14:03:38 +00:00
resources :olympiamanagements
end
resource 'olympiamanagements' do
get 'updata_school_data'
post 'updata_school_data'
patch 'updata_school_data'
get 'updata_student_data'
post 'updata_student_data'
patch 'updata_student_data'
get 'download_school_code'
get 'school_connection_data'
get 'add_sign_up_student_data'
get 'sign_up_student_data_list'
get 'edit_password'
get 'print_registration_form'
get 'logout'
2020-02-04 11:24:13 +00:00
post 'login'
end
2020-01-22 14:03:38 +00:00
end
end