hapi-version-status
v2.0.1
Published
Plugin that registers a route that returns version and status details of the server
Maintainers
Readme
hapi-version-status
Plugin that registers a route that returns version and status details of the server
installation
'npm install hapi-version-status -S'
usage
const Hapi = require('hapi');
const server = hapi.server();
await server.register([{
plugin: require('hapi-version-status'),
options: {
path: '/version',
options: {
tags: ['my-tag']
}
}
}]);where:
pathis the path where the end point for the version dataDefault: '/version'
optionsis an object containing the hapi route optionsDefault: {}
