fortune-healthcheck
v0.0.1
Published
Healthcheck middleware for Fortune
Downloads
2
Readme
fortune-healthcheck
A healthcheck middleware for Fortune
Usage
var healthcheck = require('fortune-healthcheck');
app.use(healthcheck(app.adapter, 'nameOfAResource'));
Healthcheck takes four parameters:
- Fortune.adapter object
- The name of one of the resources defined in Fortune as a string
- A URL that the healthcheck is available on (defaults to /v1/healthcheck)
- An error message that is passed to error handling middleware (defaults to Service Healthcheck Failed)