pseudo_member/config/routes.rb

23 lines
680 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"
end
end
end