Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 549 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 549 Bytes

CircleCI

Koa Custom Health Report Middleware

Installation:

const healthreport = require('koa-health-report');

The default path is /health:

app.use(healthreport());

With a custom path:

app.use(healthreport({ path: '/custompath' }));

With a custom report object (appended):

app.use(healthreport({ custom: {
  foo: 'bar',
  bin: () => 'baz',
} }));