Remove the constraints on services callback, since there is a spec against it.

This commit is contained in:
Akinori MUSHA 2014-09-30 09:06:46 +09:00
parent 87ad26301b
commit 2f1ff3192c

View file

@ -67,7 +67,7 @@ Huginn::Application.routes.draw do
post "/users/:user_id/update_location/:secret" => "web_requests#update_location" # legacy
match '/auth/:provider/callback', to: 'services#callback',
via: [:get, :post], constraints: { provider: Regexp.union(Devise.omniauth_providers.map(&:to_s)) }
via: [:get, :post] #, constraints: { provider: Regexp.union(Devise.omniauth_providers.map(&:to_s)) }
devise_for :users, :sign_out_via => [ :post, :delete ]
get "/about" => "home#about"