From ac4b3a617cd09290034239bce6738195ebf47636 Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 9 Nov 2023 16:24:42 -0500 Subject: [PATCH] Feature: Live service check on stock price checker proxy --- apps/stock-price-checker-proxy/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/stock-price-checker-proxy/server.js b/apps/stock-price-checker-proxy/server.js index 52af8b557..8f1f774e6 100644 --- a/apps/stock-price-checker-proxy/server.js +++ b/apps/stock-price-checker-proxy/server.js @@ -12,6 +12,10 @@ app.get("/", (req, res) => { res.sendFile(__dirname + "/views/index.html"); }); +app.get('/status/ping', (req, res) => { + res.send({ msg: 'pong' }).status(200); +}); + // eslint-disable-next-line no-unused-vars app.use((err, req, res, next) => { if (err) {