From 9615a53d65f879215b5c9d5d8efbed4c181ef436 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Sat, 19 Nov 2022 16:57:23 +0100 Subject: [PATCH] naming --- pages/api/health.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/health.ts b/pages/api/health.ts index 1365fc2ee..ff1b0b575 100644 --- a/pages/api/health.ts +++ b/pages/api/health.ts @@ -1,12 +1,12 @@ import type { NextApiRequest, NextApiResponse } from "next"; type Data = { - name: string; + status: string; }; export default function handler( req: NextApiRequest, res: NextApiResponse ) { - res.status(200).json({ name: "Api up and running :)" }); + res.status(200).json({ status: "Api up and running :)" }); }