Skip to content

Commit

Permalink
Merge pull request #151 from CS3219-AY2425S1/feat/update-health-check…
Browse files Browse the repository at this point in the history
…-route
  • Loading branch information
simbayippy authored Nov 6, 2024
2 parents 1eff92f + 315e1be commit 2b92d5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api-gateway/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ app.use(express.json());
app.use(cors()); // configured so any one can use
app.options('*', cors());

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

// Logging middleware
// app.use((req, res, next) => {
// logger.info(`Incoming request: ${req.method} ${req.originalUrl}`);
Expand All @@ -26,11 +31,6 @@ 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 2b92d5b

Please sign in to comment.