diff --git a/package.json b/package.json index 6e1ea6d..546e3ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eolas-api", - "version": "0.2.2", + "version": "0.3.0", "description": "API for querying eolas-db, my Zettelkasten database", "license": "ISC", "author": "Thomas Bishop", diff --git a/src/index.js b/src/index.js index 69f485b..d4e0fd3 100644 --- a/src/index.js +++ b/src/index.js @@ -14,8 +14,12 @@ 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) => {