Sha256: 9e1bc62aa97c09a97965ac5b2ea851dcae8a766e1ab7b8c4bf1316f54aa80687

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

Rails.application.routes.draw do

  # This line mounts Socialite's routes at /socialite by default.
  # This means, any requests to the /socialite URL of your application will go
  # to Socialite::SessionsController#new. If you would like to change where
  # this extension is mounted, simply change the :at option to something
  # different.
  #
  # We ask that you don't use the :as option here, as Socialite relies on it
  # being the default of "socialite"
  mount Socialite::Engine, :at => '/socialite'
  match '/login' => 'socialite/sessions#new', via: [:get]
  match '/logout', :to => 'socialite/sessions#destroy', via: [:get, :post]
  match '/signup', :to => 'socialite/users#new', via: [:get]
  match '/auth/:provider/callback', :to => 'socialite/sessions#create', via: [:post]
  match '/auth/failure', :to => 'socialite/sessions#failure', via: :all

  root :to => "pages#index"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
socialite-0.2.1 spec/dummy/config/routes.rb
socialite-0.2.0 spec/dummy/config/routes.rb