Feature/add status check ping (#2579)

add status check ping
This commit is contained in:
Henry Heng
2024-06-04 18:45:45 +01:00
committed by GitHub
parent 5a73eaa588
commit 582dcc8508
4 changed files with 25 additions and 1 deletions
@@ -0,0 +1,13 @@
import { Request, Response, NextFunction } from 'express'
const getPing = async (req: Request, res: Response, next: NextFunction) => {
try {
return res.status(200).send('pong')
} catch (error) {
next(error)
}
}
export default {
getPing
}