From f7d080fa949f2c00652d38a9221576ccfb6ec14a Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Fri, 18 Apr 2025 13:51:26 +0530 Subject: [PATCH] feat: add a simple /health endpoint --- src/pages/api/health.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/pages/api/health.ts diff --git a/src/pages/api/health.ts b/src/pages/api/health.ts new file mode 100644 index 0000000..bfda859 --- /dev/null +++ b/src/pages/api/health.ts @@ -0,0 +1,12 @@ +import type { NextApiRequest, NextApiResponse } from 'next'; + +type ResponseData = { + status: string; +}; + +export default function handler( + req: NextApiRequest, + res: NextApiResponse +) { + res.status(200).json({ status: 'ok' }); +} \ No newline at end of file