Added health check endpoint

This commit is contained in:
Jori Lallo 2016-09-05 14:26:06 -07:00
parent 394137a96f
commit db7565bf07
1 changed files with 2 additions and 0 deletions

View File

@ -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({