Sha256: ad1f317996cec7e9219405a4442b774097b4839468050452ceba08012e747b58

Contents?: true

Size: 879 Bytes

Versions: 10

Compression:

Stored size: 879 Bytes

Contents

Rails.application.routes.draw do
  scope :module => 'quo_vadis' do
    get  'sign-in'                 => 'sessions#new',       :as => 'sign_in'
    post 'sign-in'                 => 'sessions#create',    :as => 'sign_in'
    get  'sign-out'                => 'sessions#destroy',   :as => 'sign_out'
    get  'sign-in/forgotten'       => 'sessions#forgotten', :as => 'forgotten_sign_in'
    post 'sign-in/forgotten'       => 'sessions#forgotten', :as => 'forgotten_sign_in'
    constraints :token => /.+/ do
      get  'sign-in/change-password/:token' => 'sessions#edit',   :as => 'change_password'
      put  'sign-in/change-password/:token' => 'sessions#update', :as => 'change_password'
      get  'sign-in/invite/:token'          => 'sessions#invite', :as => 'invitation'
      post 'sign-in/accept/:token'          => 'sessions#accept', :as => 'activation'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
quo_vadis-1.4.2 config/routes.rb
quo_vadis-1.4.1 config/routes.rb
quo_vadis-1.4.0 config/routes.rb
quo_vadis-1.3.2 config/routes.rb
quo_vadis-1.3.1 config/routes.rb
quo_vadis-1.3.0 config/routes.rb
quo_vadis-1.2.3 config/routes.rb
quo_vadis-1.2.2 config/routes.rb
quo_vadis-1.2.1 config/routes.rb
quo_vadis-1.2.0 config/routes.rb