From db7565bf077d5f3e0d1f68504f039aee902657e3 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Mon, 5 Sep 2016 14:26:06 -0700 Subject: [PATCH] Added health check endpoint --- server/routes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/routes.js b/server/routes.js index ac038ba16..4d5a00e3a 100644 --- a/server/routes.js +++ b/server/routes.js @@ -26,6 +26,8 @@ router.get('/service-worker.js', async (ctx) => { if (!ctx.status) ctx.throw(httpErrors.NotFound()); }); +router.get('/_health', ctx => (ctx.body = 'OK')); + if (process.env.NODE_ENV === 'production') { router.get('/static/*', async (ctx) => { ctx.set({