From 46272927860a70509573520c437f0c31747d95b9 Mon Sep 17 00:00:00 2001 From: Tben Date: Mon, 21 Aug 2023 09:15:10 +0100 Subject: [PATCH] updates --- pages/api/{test.ts => test-route.ts} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename pages/api/{test.ts => test-route.ts} (88%) diff --git a/pages/api/test.ts b/pages/api/test-route.ts similarity index 88% rename from pages/api/test.ts rename to pages/api/test-route.ts index f6ac2cb..ad2f2fd 100644 --- a/pages/api/test.ts +++ b/pages/api/test-route.ts @@ -4,7 +4,7 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from "next"; * @type {NextApiHandler} */ export default function handler(req: NextApiRequest, res: NextApiResponse) { - return res.status(200).json({ + res.status(200).json({ title: "Hello There", message: "General Kenobi", });