sugo-endpoint-caller
v1.0.0
Published
Client for sugo-enpoint-actor
Downloads
1
Readme
sugo-endpoint-caller
Client for sugo-enpoint-actor.
Usage
const EndpointCaller = require('sugo-endpoint-caller')
const co = require('co')
co(function * () {
let actor = new EndpointCaller({
pathname: '/api'
})
let api = actor.get('greeting')
let hello = yield api.hello({ message: 'hoge' })
console.log(hello)
})