Class: Booth::Routes::Userland
- Inherits:
-
Object
- Object
- Booth::Routes::Userland
- Includes:
- Calls
- Defined in:
- lib/booth/routes/userland.rb
Overview
All Rails routes needed by Users.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/booth/routes/userland.rb', line 9 def call " # Users creating their own accounts.\n resource :registration, only: %i[new create]\n\n # Logging in\n resource :login, only: %i[new create destroy]\n resource :remote_login, only: %i[show update], path: \#{I18n.t('booth.remote_login_path').to_sym.inspect} # e.g. `path: :fernlogin`\n\n # Onboarding\n resources :onboardings, only: %i[show update], path: :onboard\n\n # Self-service Portal\n resources :sessions, only: %i[index show destroy] do\n delete :destroy_all_others, on: :collection\n end\n resources :webauths, only: %i[index new create destroy] do\n post :sudo, on: :collection\n end\n RUBY\nend\n" |