X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0a046673d630a4618c27559875ce613465d85d3c..3023c070ea3bedf859d1875cdcbbf374976cca66:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 404e7b0a3..43c43a793 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,6 +5,8 @@ OpenStreetMap::Application.routes.draw do :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