diff --git a/Gemfile.lock b/Gemfile.lock index 1363181d..7108fe04 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,7 +53,7 @@ GIT GIT remote: git://github.com/travis-ci/travis-support.git - revision: a19ad9390721c75513505fd60191633789f55a42 + revision: d2cce5dbbee64fb1574386b16da3768feadb372a specs: travis-support (0.0.1) diff --git a/lib/travis/api/app/endpoint/home.rb b/lib/travis/api/app/endpoint/home.rb index 522ec1d9..b98956f5 100644 --- a/lib/travis/api/app/endpoint/home.rb +++ b/lib/travis/api/app/endpoint/home.rb @@ -8,7 +8,8 @@ class Travis::Api::App host: Travis.config.client_domain, shorten_host: Travis.config.shorten_host, assets: Travis.config.assets, - pusher: { key: Travis.config.pusher.try(:key) } + pusher: { key: Travis.config.pusher.try(:key) }, + github: { api_url: GH.current.api_host.to_s, scopes: Travis.config.oauth2.try(:scope).to_s.split(?,) } # Landing point. Redirects web browsers to [API documentation](#/docs/). get '/' do