@microfleet/plugin-hapi
TypeScript icon, indicating that this package has built-in type declarations

4.0.1 • Public • Published

@microfleet/plugin-hapi

Usage

const service = new Microfleet({
  name: 'http-server',
  plugins: [
    'validator', // essensial plugin
    'logger', // essensial plugin
    'hapi',
  ],
  hapi: {
    // server: Hapi server options
    // plugins: list of plugins
    // views: list of views (e.g. html templates)
  }
})

await service.connect()

// service.hapi -- instance of Hapi server

Readme

Keywords

none

Package Sidebar

Install

npm i @microfleet/plugin-hapi

Weekly Downloads

128

Version

4.0.1

License

MIT

Unpacked Size

27.2 kB

Total Files

34

Last publish

Collaborators

  • avvs
  • torinasakura