X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8a22bfb222b3b063a03efd5e85da834f3d63b5fc..2f11b77309ee18aafb1bcce9dbe5bfc38a298bbb:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 5b537ea3e..43c43a793 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,11 +1,12 @@ OpenStreetMap::Application.routes.draw do - use_doorkeeper_openid_connect use_doorkeeper :scope => "oauth2" do controllers :authorizations => "oauth2_authorizations", :applications => "oauth2_applications", :authorized_applications => "oauth2_authorized_applications" end + use_doorkeeper_openid_connect :scope => "oauth2" if Settings.key?(:doorkeeper_signing_key) + # API namespace :api do get "capabilities" => "capabilities#show" # Deprecated, remove when 0.6 support is removed