From bbc1ebaee6dd1e72e89d9b059d681af7b898157d Mon Sep 17 00:00:00 2001 From: bryanmartineze <55309306+bryanmartineze@users.noreply.github.com> Date: Thu, 16 Jul 2020 19:44:44 -0500 Subject: [PATCH 1/2] Update musician.js --- routes/musician.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/routes/musician.js b/routes/musician.js index 798ef4abc..20d12ca38 100644 --- a/routes/musician.js +++ b/routes/musician.js @@ -4,11 +4,6 @@ const bodyParser = require('body-parser'); const jsonParser = bodyParser.json(); const schema = require('../store/schema'); -// healthcheck -router.get('/health', (req, res) => { - res.status('200').send("Status: ok!"); -}); - // retrieve all musicians from data store router.get('/all', (req, res) => { const { musician } = req.app.locals; @@ -62,4 +57,4 @@ router.delete('/:id', (req, res) => { }); }); -module.exports = router; \ No newline at end of file +module.exports = router; From 8b77ff6ce9bee37a45590fc7116d6ca207d0f807 Mon Sep 17 00:00:00 2001 From: bryanmartineze Date: Thu, 16 Jul 2020 20:04:28 -0500 Subject: [PATCH 2/2] add healthcheck commit --- routes/musician.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/musician.js b/routes/musician.js index 20d12ca38..967c19a19 100644 --- a/routes/musician.js +++ b/routes/musician.js @@ -4,6 +4,11 @@ const bodyParser = require('body-parser'); const jsonParser = bodyParser.json(); const schema = require('../store/schema'); +// healthcheck +router.get('/health', (req, res) => { + res.status('200').send("Status ok"); +}); + // retrieve all musicians from data store router.get('/all', (req, res) => { const { musician } = req.app.locals;