X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bd8d207ea42baa50f0a09daa31630c4e3014ac93..b0bc04abf1cc17228b114cc60021e42f8dcdd51e:/config/routes.rb?ds=sidebyside diff --git a/config/routes.rb b/config/routes.rb index 514c6f756..04d1a763c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -244,8 +244,8 @@ OpenStreetMap::Application.routes.draw do scope "/user/:display_name" do resources :oauth_clients end - match '/oauth/revoke' => 'oauth#revoke', :via => :post - match '/oauth/authorize' => 'oauth#authorize', :via => :post, :as => :authorize + match '/oauth/revoke' => 'oauth#revoke', :via => [:get, :post] + match '/oauth/authorize' => 'oauth#authorize', :via => [:get, :post], :as => :authorize match '/oauth/token' => 'oauth#token', :via => :get, :as => :token match '/oauth/request_token' => 'oauth#request_token', :via => :get, :as => :request_token match '/oauth/access_token' => 'oauth#access_token', :via => :get, :as => :access_token