Skip to content

Commit

Permalink
Add health check handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Aug 1, 2023
1 parent ceb964d commit 1fc784d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ app.use(
json(),
)

app.get('/health', (_, res) => {
res.status(200).send('OK')
})

function loadStaticFile(relativePath: string) {
return readFileSync(path.join(__dirname, relativePath), 'utf-8')
}
Expand Down

0 comments on commit 1fc784d

Please sign in to comment.