This commit is contained in:
Timur Ercan
2022-11-19 16:57:23 +01:00
parent e10b04b9a7
commit 9615a53d65

View File

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