Sha256: 09c0b546a0c08e12c3bd5138b7da0e164a497232fcbfcbbff5148ea4bbbbac61

Contents?: true

Size: 294 Bytes

Versions: 8

Compression:

Stored size: 294 Bytes

Contents

Trestle::Engine.routes.draw do
  controller "trestle/auth/sessions" do
    if Trestle.config.auth.enable_login
      get  'login'  => :new, as: :login
      post 'login'  => :create
    end

    if Trestle.config.auth.enable_logout
      get 'logout' => :destroy, as: :logout
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trestle-auth-0.5.0 config/routes.rb
trestle-auth-0.5.0.pre2 config/routes.rb
trestle-auth-0.5.0.pre config/routes.rb
trestle-auth-0.4.4 config/routes.rb
trestle-auth-0.4.3 config/routes.rb
trestle-auth-0.4.2 config/routes.rb
trestle-auth-0.4.1 config/routes.rb
trestle-auth-0.4.0 config/routes.rb