2017-05-18 12:12:35 +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
|
|
|
|
resources :member_counselors do
|
|
|
|
collection do
|
|
|
|
get "uploads"
|
|
|
|
get "get_info"
|
|
|
|
end
|
|
|
|
member do
|
|
|
|
delete "destroy_upload"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
scope "cuser" do
|
2017-05-25 16:35:05 +00:00
|
|
|
get "download", to: "member_counselors#download"
|
|
|
|
get "/member_login", to: "member_counselors#login", as: "member_login"
|
2017-06-27 12:01:36 +00:00
|
|
|
|
2017-05-18 12:12:35 +00:00
|
|
|
get "/member/fileupload", to: "member_counselors#fileupload", as: "upload_cuser_file"
|
2017-06-27 12:01:36 +00:00
|
|
|
get "/member/resultupload", to: "member_counselors#resultupload", as: "upload_cuser_result"
|
|
|
|
|
2017-05-18 12:12:35 +00:00
|
|
|
get "/member/:id/editfileupload", to: "member_counselors#editfileupload", as: "edit_upload_cuser_file"
|
2017-06-27 12:01:36 +00:00
|
|
|
get "/member/:id/editresultupload", to: "member_counselors#editresultupload", as: "edit_upload_cuser_result"
|
|
|
|
|
2017-05-18 12:12:35 +00:00
|
|
|
delete "/member/:id/deletefileupload", to: "member_counselors#deletefileupload", as: "delete_upload_cuser_file"
|
2017-06-27 12:01:36 +00:00
|
|
|
delete "/member/:id/deleteresultupload", to: "member_counselors#deleteresultupload", as: "delete_upload_cuser_result"
|
|
|
|
|
2017-05-18 12:12:35 +00:00
|
|
|
post "/member/file_upload", to: "member_counselors#file_upload"
|
2017-06-27 12:01:36 +00:00
|
|
|
post "/member/result_upload", to: "member_counselors#result_upload"
|
|
|
|
|
2017-05-18 12:12:35 +00:00
|
|
|
patch "/member/:id/update_file_upload", to: "member_counselors#update_file_upload"
|
2017-06-27 12:01:36 +00:00
|
|
|
patch "/member/:id/update_result_upload", to: "member_counselors#update_result_upload"
|
|
|
|
|
|
|
|
patch "/member/:id/update_record_upload", to: "member_counselors#update_record_upload"
|
|
|
|
|
|
|
|
get "/member/newrecord", to: "member_counselors#newrecord", as: "new_counselor_record"
|
|
|
|
get "/member/get_info", to: "member_counselors#get_info"
|
|
|
|
get "/member/:id/editrecord", to: "member_counselors#editrecord", as: "edit_counselor_record"
|
|
|
|
get "/member/:id/showrecord", to: "member_counselors#showrecord", as: "show_counselor_record"
|
|
|
|
delete "/member/:id/deleterecord", to: "member_counselors#deleterecord", as: "delete_counselor_record"
|
|
|
|
|
|
|
|
post "/member/new_record_upload", to: "member_counselors#new_record_upload"
|
|
|
|
|
2017-05-18 12:12:35 +00:00
|
|
|
get "/member/:account", to: "member_counselors#show", as: "member_dash"
|
|
|
|
post "/member_counselor/login", to: "member_counselors#loginuser"
|
|
|
|
get "/member_counselor/logout", to: "member_counselors#logoutuser", as: "member_logout"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|