fix: health endpoint null ref
This commit is contained in:
parent
230bf67f6c
commit
0db90ca438
2 changed files with 4 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "eolas-api",
|
"name": "eolas-api",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"description": "API for querying eolas-db, my Zettelkasten database",
|
"description": "API for querying eolas-db, my Zettelkasten database",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"author": "Thomas Bishop",
|
"author": "Thomas Bishop",
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,5 @@ app.listen(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 })
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue