hps_member/config/routes.rb

30 lines
1.3 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/:id/editfileupload", to: "member_counselors#editfileupload", as: "edit_upload_cuser_file"
delete "/member/:id/deletefileupload", to: "member_counselors#deletefileupload", as: "delete_upload_cuser_file"
post "/member/file_upload", to: "member_counselors#file_upload"
patch "/member/:id/update_file_upload", to: "member_counselors#update_file_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