feat: add healthcheck endpoint

This commit is contained in:
Hossein Mehrabi 2023-12-06 21:11:03 +03:30
parent da28aa2c14
commit 5b85a2286f
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1

8
src/pages/api/health.ts Normal file
View File

@ -0,0 +1,8 @@
import type { NextApiRequest, NextApiResponse } from 'next'
export default async function handler(
req: NextApiRequest,
res: NextApiResponse<any>,
) {
res.status(200).send('OK')
}