hps_member/config/routes.rb

29 lines
1.2 KiB
Ruby
Raw Normal View History

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
get "/member_login", to: "member_counselors#index", 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