X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f58f49e196da9a063c8c7e61b158e06a2df0315d..e222329d043592af299eed12cf6ad16969c1b46f:/config/routes.rb?ds=sidebyside diff --git a/config/routes.rb b/config/routes.rb index da3921e4a..048db8b33 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,10 @@ OpenStreetMap::Application.routes.draw do + use_doorkeeper :scope => "oauth2" do + controllers :authorizations => "oauth2_authorizations", + :applications => "oauth2_applications", + :authorized_applications => "oauth2_authorized_applications" + end + # API namespace :api do get "capabilities" => "capabilities#show" # Deprecated, remove when 0.6 support is removed