Skip to content

Commit

Permalink
info() method
Browse files Browse the repository at this point in the history
  • Loading branch information
jogc committed Aug 11, 2018
1 parent b414ee7 commit 5249157
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/client.js
Expand Up @@ -55,6 +55,12 @@ class LightningChargeClient {
.type('json').send({ url })
.then(res => true)
}

info() {
debug('info()')
return this.req.get('/info')
.then(res => res.body)
}
}

module.exports = (url, token) => new LightningChargeClient(url, token)

0 comments on commit 5249157

Please sign in to comment.