diff --git a/src/index.ts b/src/index.ts index f9b2af3..f81197b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -101,6 +101,11 @@ function updateStack(stackUpdate: Record): Promise { ); } +// 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 => { hookCount += 1; const hookId: number = hookCount;