From 90ae15fe45e8699819c9e06c8c00b5a027e88d11 Mon Sep 17 00:00:00 2001 From: Chris Chen Date: Tue, 4 Jun 2019 00:40:30 +1000 Subject: [PATCH] update health check --- README.md | 6 +++++- buildspec.yml | 2 ++ src/routes/index.js | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e7ef19..12d64eb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -# Express & mongoose REST API for FUUTR apps and admin portal +# About + +- Node.js back-end: https://github.com/chrischenyc/fuutr-server +- React admin portal: https://github.com/chrischenyc/fuutr-admin-web +- iOS rider app: https://github.com/chrischenyc/fuutr-rider-app-ios ## Overview diff --git a/buildspec.yml b/buildspec.yml index 11fd2f7..ad6078b 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -1,3 +1,5 @@ +# https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html + version: 0.2 phases: diff --git a/src/routes/index.js b/src/routes/index.js index ee9e2eb..c08b880 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -15,7 +15,7 @@ const search = require('./search'); const issues = require('./issues'); router.get('/health-check', (req, res) => { - res.status(200).send(); + res.json({ message: 'server is up' }); }); router.use('/remoteConfig', remoteConfig);