8 lines
292 B
TypeScript
8 lines
292 B
TypeScript
import { NextFunction, Request, Response } from 'express';
|
|
|
|
export const healthCheck = (req: Request, res: Response, next: NextFunction) => {
|
|
// res.status(200).json({status: 'OK', message: 'Server is healthy'});
|
|
console.log(new Date(), 'Health check endpoint hit');
|
|
next();
|
|
}
|