Skip to content

Commit

Permalink
Add /healthz endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Logan <lindluni@github.com>
  • Loading branch information
lindluni committed Mar 10, 2024
1 parent 33aac5e commit 27fbc89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ app.get('/', (req, res) => {
res.send('OK')
})

app.get('/healthz', (req, res) => {
console.log('Health check: OK')
res.send('OK')
})

const main = async () => {
app.listen(port, () => {
console.log(`Server is running on port ${port}`)
Expand Down

0 comments on commit 27fbc89

Please sign in to comment.