fix: health endpoint null ref
All checks were successful
Deploy eolas-api / deploy (push) Successful in 47s

This commit is contained in:
Thomas Bishop 2025-10-18 16:23:12 +01:00
parent 230bf67f6c
commit 31105abd95

View file

@ -14,14 +14,10 @@ app.use("/entries", entries)
app.use("/tags", tags) app.use("/tags", tags)
app.listen(port, () => { app.listen(port, () => {
console.info(`TB-INFO eolas-api running on NodeJS ${process.version}`) 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 server running at http://localhost:${port}`)
}) })
app.get("/health", (req, res) => { app.get("/health", (req, res) => {
res.status(200).json({ status: ok }) res.status(200).json({ status: "ok" })
})
app.get("/health", (req, res) => {
res.status(200).json({ status: ok })
}) })