feat: add healthcheck endpoint

This commit is contained in:
Hossein Mehrabi 2023-08-31 14:31:10 +03:30
parent c3808edc44
commit 89494566b3
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')
}