1.0.0 • Published 7 years ago
sugo-endpoint-caller v1.0.0
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)
})
1.0.0
7 years ago