0.0.2 • Published 6 years ago

dz-kfc v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

dz-kfc

usage

  • download

    npm install dz-kfc
  • register

    import Kong from 'dz-kfc'
    
    const config = {
      kong_url: 'http://localhost:8001',
      route: {
        paths: ['/derekzhou']
      },
      service: {
        host: 'derekzhouupstream',
        name: 'derekzhou-test',
        path: '/',
        port: 5555,
      },
      upstream: {
        name: 'derekzhouupstream'
      }
    }
    const KFC = new Kong(config)
    
    KFC.register().then(() => {})
  • unregister