From eaed8b3bcbb66f294003d1c8da53fa75ecbe92ca Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Tue, 15 Oct 2024 08:47:24 -0230 Subject: [PATCH] Test api route --- apps/www/pages/api/hello.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 apps/www/pages/api/hello.ts diff --git a/apps/www/pages/api/hello.ts b/apps/www/pages/api/hello.ts new file mode 100644 index 00000000000..07f5614a467 --- /dev/null +++ b/apps/www/pages/api/hello.ts @@ -0,0 +1,9 @@ +import type { NextApiRequest, NextApiResponse } from 'next' + +type ResponseData = { + message: string +} + +export default function handler(req: NextApiRequest, res: NextApiResponse) { + res.status(200).json({ message: 'Hello from Next.js!' }) +}