Informational status page for Hapi apps
npm install hapi-dingDing Route Plugin for Hapi
==========================



This Hapi plugin exposes a route at /ding (by default), which responds with useful server information.
This plugin works with Hapi 17 and above.
``javascript
const Hapi = require('hapi');
const server = Hapi.Server({
load: {
sampleInterval: 1000
},
host: 'localhost',
port: 8000
});
await server.register({
plugin: require('hapi-ding')
});
`
when you hit /ding, the route will reply with
`json`
{
"ding": {
"cpu": [
1.67236328125,
1.828125,
1.927734375
],
"mem": 1429590016,
"time": 1425933629427,
"heap": 13402416,
"loop": 4.86166600137949
}
}
to put the properties at the root level. Defaults to "ding".
- _'config'_ - optional Hapi route options to be merged with the defaults. Defaults to { auth: false }.
- _'otherData'_ - static object to be merged with the info object. Defaults to null`.