feat: add a simple /health endpoint

This commit is contained in:
Danish Arora 2025-04-18 13:51:26 +05:30
parent d8cbc3f586
commit f7d080fa94
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E

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

@ -0,0 +1,12 @@
import type { NextApiRequest, NextApiResponse } from 'next';
type ResponseData = {
status: string;
};
export default function handler(
req: NextApiRequest,
res: NextApiResponse<ResponseData>
) {
res.status(200).json({ status: 'ok' });
}