fix: health endpoint null ref
All checks were successful
Deploy eolas-api / deploy (push) Successful in 47s
All checks were successful
Deploy eolas-api / deploy (push) Successful in 47s
This commit is contained in:
parent
230bf67f6c
commit
31105abd95
1 changed files with 3 additions and 7 deletions
10
src/index.js
10
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" })
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue