pseudo_member/config/routes.rb

25 lines
881 B
Ruby
Raw Normal View History

2017-09-21 12:50:17 +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 :pseudo_members do
collection do
get "settings"
end
member do
patch "update_settings"
end
end
end
scope "pseudo_users" do
post "/loginpseudouser", to: "pseudo_members#loginuser"
2017-12-21 19:40:17 +00:00
get "/logoutpseudouser", to: "pseudo_members#logoutuser", as: "member_logout"
2017-09-21 12:50:17 +00:00
post "/register_pseudo_user", to: "pseudo_members#register_user", as: "register_pseudo_user"
2018-06-23 16:49:07 +00:00
post "/forgot_pseudo_user", to: "pseudo_members#forgot_pseudo_user", as: "forgot_pseudo_user"
patch "/update_pseudo_user", to: "pseudo_members#update_pseudo_user", as: "update_pseudo_user"
2017-09-21 12:50:17 +00:00
end
end
end