From 6a45803ca837bf712ea00a2e6028b7521ee2766a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Quiroz?= Date: Wed, 4 Jan 2023 13:09:03 -0300 Subject: [PATCH] chore: remove unused /api dir (#26415) --- src/pages/api/hello.ts | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/pages/api/hello.ts diff --git a/src/pages/api/hello.ts b/src/pages/api/hello.ts deleted file mode 100644 index eb4cc6657b..0000000000 --- a/src/pages/api/hello.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction -import type { NextApiRequest, NextApiResponse } from 'next'; - -type Data = { - name: string; -}; - -export default function handler(req: NextApiRequest, res: NextApiResponse) { - res.status(200).json({ name: 'John Doe' }); -}