51 lines
2.4 KiB
Ruby
51 lines
2.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
|
|
resources :member_counselors do
|
|
collection do
|
|
get "uploads"
|
|
get "get_info"
|
|
end
|
|
member do
|
|
delete "destroy_upload"
|
|
end
|
|
end
|
|
end
|
|
scope "cuser" do
|
|
get "download", to: "member_counselors#download"
|
|
get "/member_login", to: "member_counselors#login", as: "member_login"
|
|
|
|
get "/member/fileupload", to: "member_counselors#fileupload", as: "upload_cuser_file"
|
|
get "/member/resultupload", to: "member_counselors#resultupload", as: "upload_cuser_result"
|
|
|
|
get "/member/:id/editfileupload", to: "member_counselors#editfileupload", as: "edit_upload_cuser_file"
|
|
get "/member/:id/editresultupload", to: "member_counselors#editresultupload", as: "edit_upload_cuser_result"
|
|
|
|
delete "/member/:id/deletefileupload", to: "member_counselors#deletefileupload", as: "delete_upload_cuser_file"
|
|
delete "/member/:id/deleteresultupload", to: "member_counselors#deleteresultupload", as: "delete_upload_cuser_result"
|
|
|
|
post "/member/file_upload", to: "member_counselors#file_upload"
|
|
post "/member/result_upload", to: "member_counselors#result_upload"
|
|
|
|
patch "/member/:id/update_file_upload", to: "member_counselors#update_file_upload"
|
|
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"
|
|
|
|
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
|