2.0.1 • Published 5 years ago
Provides check function for health
checking MongoDB connection using mongoose
.
Usage
app.get('/health', require('@maxdome/health').controller({
db: require('@dnode/health-mongoose')({ db }),
}));
Example response
{
"outcome": "UP",
"checks": [
{
"name": "db",
"state": "UP"
}
]
}