Skip to content

Commit

Permalink
Merge pull request #150 from CS3219-AY2425S1/feat/health-check
Browse files Browse the repository at this point in the history
add health check for api gateway
  • Loading branch information
Kurtyjlee authored Nov 6, 2024
2 parents ab24d47 + 4852571 commit 1eff92f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api-gateway/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ app.options('*', cors());
// Routes
app.use('/api/v1', routes);

// Health check route
app.get('/api/v1/health', (req, res) => {
res.status(200).send('OK');
});

// Error handling
app.use(errorHandler);

Expand Down

0 comments on commit 1eff92f

Please sign in to comment.