rik-health
v1.0.0
Published
Health endpoint module for RIK
Downloads
5
Readme
rik-health
Health endpoint module for RIK
Requires Express Installed
Usage
npm install rik-health
const setupHealth = require('rik-health');
const router = express.Router();
function logme(str){
console.log(str);
}
setupHealth(router, '/api/v1/something', '/my/config/dependencies.yml', logme);
Dependencies Schema (uses joi -> joi-json -> joi-yml)
dependencies:
'@items':
name: 'string:required'
endpoint: 'string:required'
timeout: 'number:required'
expectedStatusCode: 'number:required'