From 7817979bb1be2201cd9897b077f842b214b18271 Mon Sep 17 00:00:00 2001 From: Boyan Tabakov Date: Wed, 28 Feb 2018 18:19:56 +0200 Subject: [PATCH] Add a simple static /_status.json page --- server/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/index.js b/server/index.js index 8872b253..b75d3577 100644 --- a/server/index.js +++ b/server/index.js @@ -134,6 +134,10 @@ app.get('*', (req, res) => { return res.status(404).send('Static asset not found.'); } + if (req.url === '/_status.json') { + return res.status(200).send({ status: 'ok' }); + } + const context = {}; // Get handle to tokenStore