Sha256: 9dc76a0304eea1af520f5fe89389fba5c0c9afb9e280d7125ba73544d5689a68

Contents?: true

Size: 818 Bytes

Versions: 11

Compression:

Stored size: 818 Bytes

Contents

Ecm::UserArea::Engine.routes.draw do
  localized do
    scope :ecm_user_area_engine do
      resource :current_user, only: [:show, :edit, :update]
      resource :current_user, only: [:new, :create] if Ecm::UserArea::Configuration.enable_registrations
      resource :current_user, only: [:destroy] if Ecm::UserArea::Configuration.allow_users_to_destroy_self
      resource :user_password_reset_request, only: [:new, :create]

      resource :user_password_reset, only: [] do
        get 'edit/:token' => 'user_password_resets#edit', constraint: { token: /\d+/ }, as: :edit
        match '/:id/:token' => 'user_password_resets#update', constraint: { token: /\d+/ }, as: :update, via: [:put, :patch]
      end

      resource :user_session, only: [:new, :create, :destroy]

      root to: 'user#show'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ecm_user_area2-4.0.2 config/routes.rb
ecm_user_area2-4.0.1 config/routes.rb
ecm_user_area2-3.1.2 config/routes.rb
ecm_user_area2-3.1.1 config/routes.rb
ecm_user_area2-3.1.0 config/routes.rb
ecm_user_area2-3.0.3 config/routes.rb
ecm_user_area2-3.0.2 config/routes.rb
ecm_user_area2-3.0.1 config/routes.rb
ecm_user_area2-3.0.0 config/routes.rb
ecm_user_area2-2.3.0 config/routes.rb
ecm_user_area2-2.2.0 config/routes.rb