Skip to content

Commit

Permalink
add devise routes per heartcombo/devise#2692
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo52cn committed Dec 30, 2014
1 parent 080da35 commit d0dc266
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions frontend/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,18 @@
get '/content/cvv', :to => 'content#cvv', :as => :cvv
get '/content/*path', :to => 'content#show', :as => :content
get '/cart_link', :to => 'store#cart_link', :as => :cart_link

devise_scope :user do
match "/users/auth/:provider",
constraints: { provider: /google|facebook/ },
to: "users/omniauth_callbacks#passthru",
as: :user_omniauth_authorize,
via: [:get, :post]
match "/users/auth/:action/callback",
constraints: { action: /google|facebook/ },
to: "users/omniauth_callbacks",
as: :user_omniauth_callback,
via: [:get, :post]
end

end

0 comments on commit d0dc266

Please sign in to comment.