@microfleet/plugin-hapi
v4.0.1
Published
hapi
Downloads
374
Readme
@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