From 31105abd9556c7901c26e3a7a1253e457ea5d257 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Sat, 18 Oct 2025 16:23:12 +0100 Subject: [PATCH] fix: health endpoint null ref --- src/index.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index d4e0fd3..89906af 100644 --- a/src/index.js +++ b/src/index.js @@ -14,14 +14,10 @@ app.use("/entries", entries) app.use("/tags", tags) app.listen(port, () => { - console.info(`TB-INFO eolas-api running on NodeJS ${process.version}`) - console.info(`TB-INFO eolas-api server running at http://localhost:${port}`) + console.info(`TB-INFO eolas-api running on NodeJS ${process.version}`) + console.info(`TB-INFO eolas-api server running at http://localhost:${port}`) }) app.get("/health", (req, res) => { - res.status(200).json({ status: ok }) -}) - -app.get("/health", (req, res) => { - res.status(200).json({ status: ok }) + res.status(200).json({ status: "ok" }) })