Skip to content

Commit

Permalink
Merge pull request #2 from lucaa6i/main
Browse files Browse the repository at this point in the history
added a health check endpoint
  • Loading branch information
craftycram authored Feb 18, 2024
2 parents e607392 + 0129421 commit 7cfef16
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 7cfef16

Please sign in to comment.