diff options
| author | Teddy Wing | 2015-12-30 17:38:41 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-30 17:45:28 -0800 |
| commit | 122f68c5cec937953dab0d42d0a7a0fa656806d7 (patch) | |
| tree | 77055272b140ea499f9dec3e6d4c4902dbc0383a /config | |
| parent | a443de365cc1ccfb57cbc416c4d780df9c9a0033 (diff) | |
| download | Evernote-Rails-Example-122f68c5cec937953dab0d42d0a7a0fa656806d7.tar.bz2 | |
SessionsController: Add sample code provided by OmniAuth
This is the sample callback code to get access to the OAuth auth hash.
A new route specifies that `SessionsController#create` should handle the
OAuth callback coming from Evernote.
Diffstat (limited to 'config')
| -rw-r--r-- | config/routes.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index a729a7f..70acae5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,6 +2,7 @@ Rails.application.routes.draw do root 'home#index' # get '/auth/evernote' => 'auth/evernote#index' + get '/auth/evernote/callback' => 'sessions#create' # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". |
