X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..b0150caee632110eb5b305f9937b94473101645a:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index c9563f8d4..f67121d25 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -175,6 +175,11 @@ OpenStreetMap::Application.routes.draw do get "/create-account.html", :to => redirect(:path => "/user/new") get "/forgot-password.html", :to => redirect(:path => "/user/forgot-password") + # omniauth + match "/auth/failure" => "user#auth_failure", :via => :get + match "/auth/:provider/callback" => "user#auth_success", :via => [:get, :post], :as => :auth_success + match "/auth/:provider" => "user#auth", :via => [:get, :post], :as => :auth + # permalink match "/go/:code" => "site#permalink", :via => :get, :code => /[a-zA-Z0-9_@~]+[=-]*/