strapi-health-plugin
Version:
A Strapi plugin for supporting Kubernetes health checks and monitoring
26 lines (25 loc) • 422 B
text/typescript
export default {
config: {
enabled: true,
auth: false,
},
routes: [
{
method: 'ALL',
path: '/',
handler: [
(ctx) => {
const healthcheck = {
uptime: process.uptime(),
message: 'OK',
timestamp: Date.now(),
};
ctx.body = healthcheck;
},
],
config: {
auth: false,
},
},
],
};