Nerds Publishing Monstrosities

    sugo-endpoint-caller

    1.0.0 • Public • Published

    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)
    })

    Keywords

    Install

    npm i sugo-endpoint-caller

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • fuji_haruka