From fe1c1a0848f383035e1f3caaf6fec697f2a3b987 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 24 May 2018 23:06:37 +0300 Subject: [PATCH] Return json from GET / --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index 16b93a1..777abed 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -22,7 +22,7 @@ app.use(function (req, res, next) { app.use('/anomalies', anomaliesRouter); app.use('/segments', segmentsRouter); app.use('/alerts', alertsRouter); -app.use('/', (req, res) => { res.send('Analytic unit works') }); +app.use('/', (req, res) => res.send({ status: 'OK' })); app.listen(PORT, () => { console.log(`Server is running on :${PORT}`)