health endpont

This commit is contained in:
Timur Ercan
2022-11-15 00:14:15 +01:00
parent 15b8c8bf7d
commit cb0ab9eeb6

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

@ -0,0 +1,12 @@
import type { NextApiRequest, NextApiResponse } from "next";
type Data = {
name: string;
};
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: "Api up and running :)" });
}