dz-kfc
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dz-kfc

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

21 kB

Total Files

9

Last publish

Collaborators

  • derekzhou