Sha256: be6b21e6facb8667235dda5fa007fa350753e0a998c9415553db5cb9b14cea08

Contents?: true

Size: 1.07 KB

Versions: 25

Compression:

Stored size: 1.07 KB

Contents

Spree::Core::Engine.routes.draw do
  devise_for :user,
             :class_name => 'Spree::User',
             :controllers => { :sessions => 'spree/user_sessions',
                               :registrations => 'spree/user_registrations',
                               :passwords => 'spree/user_passwords' },
             :skip => [:unlocks, :omniauth_callbacks],
             :path_names => { :sign_out => 'logout' }
end

Spree::Core::Engine.routes.prepend do
  resources :users, :only => [:edit, :update]

  devise_scope :user do
    get '/login' => 'user_sessions#new', :as => :login
    get '/signup' => 'user_registrations#new', :as => :signup
  end

  match '/checkout/registration' => 'checkout#registration', :via => :get, :as => :checkout_registration
  match '/checkout/registration' => 'checkout#update_registration', :via => :put, :as => :update_checkout_registration

  match '/orders/:id/token/:token' => 'orders#show', :via => :get, :as => :token_order

  resource :session do
    member do
      get :nav_bar
    end
  end

  resource :account, :controller => 'users'
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
spree_auth-1.1.5 config/routes.rb
spree_auth-1.0.7 config/routes.rb
spree_auth_devise-1.3.1 config/routes.rb
spree_auth_devise-1.2.0 config/routes.rb
spree_auth_devise-1.0.1 config/routes.rb
spree_auth-1.1.4 config/routes.rb
spree_auth_devise-1.0.0 config/routes.rb
spree_auth-1.1.3 config/routes.rb
spree_auth-1.0.6 config/routes.rb
spree_auth-1.0.5 config/routes.rb
spree_auth-1.1.2 config/routes.rb
spree_auth-1.1.2.rc1 config/routes.rb
spree_auth-1.1.1 config/routes.rb
spree_auth-1.1.0 config/routes.rb
spree_auth-1.0.4 config/routes.rb
spree_auth-1.1.0.rc2 config/routes.rb
spree_auth-1.1.0.rc1 config/routes.rb
spree_auth-1.0.3 config/routes.rb
spree_auth-1.0.2 config/routes.rb
spree_auth-1.0.1 config/routes.rb