Skip to content

Commit

Permalink
Merge pull request #31 from drips-network/healthcheck
Browse files Browse the repository at this point in the history
add healthcheck endpoint
  • Loading branch information
efstajas authored Oct 8, 2024
2 parents d139033 + 0afb79e commit b351e6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ const startServer = async () => {

app.set('trust proxy', 1);

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

app.use(
'/',
cors<cors.CorsRequest>(),
Expand Down

0 comments on commit b351e6a

Please sign in to comment.