Merge pull request #100 from travis-ci/rkh-scopes
expose wanted github scopes to client
This commit is contained in:
commit
f40573bd10
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user