Skip to content

Commit

Permalink
added a health check endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaa6i committed Feb 18, 2024
1 parent e607392 commit 0129421
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ function updateStack(stackUpdate: Record<string, any>): Promise<void> {
);
}

// adding a health check endpoint
app.get('/health', (req: Request, res: Response): void => {
res.status(200).send('OK');
});

app.post('/', async (req: Request, res: Response): Promise<void> => {
hookCount += 1;
const hookId: number = hookCount;
Expand Down

0 comments on commit 0129421

Please sign in to comment.