Middreware for Nuxt.js that provides healthcheck.
yarn add nuxt-healthcheck
npm install nuxt-healthcheck
module.exports = {
modules: [
'nuxt-healthcheck',
]
}
healthcheck: {
path: '/ping',
contentType: 'application/json',
healthy: () => {
return JSON.stringify({ result: 'pong' })
}
}
Default: '/healthcheck'
Default: 'text/plain'
Function that returns a response body.
Default: 'OK'
- unit test
The npm is available as open source under the terms of the MIT License.