expose more pusher infos

This commit is contained in:
Konstantin Haase 2013-09-03 18:22:31 +02:00 committed by Sven Fuchs
parent b024945cde
commit b8d700ea65

View File

@ -12,7 +12,7 @@ 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: (Travis.config.pusher || {}).to_hash.slice(:host, :port, :scheme, :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/).