Skip to content

Commit

Permalink
feat: add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 25, 2023
1 parent fa492aa commit 7b3cc87
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ app.use(async function (req, res, next) {
next();
});

app.get('/health', (req, res) => {
res.status(200).json({
message: 'OK',
timestamp: new Date().toISOString(),
});
});


app.use('/v1', V1Router);

app.use((err, req, res, next) => {
Expand Down

0 comments on commit 7b3cc87

Please sign in to comment.