From 248d5dc99aad62bfeab45271d7b2ba0a78e8f6a6 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 2 Feb 2022 11:32:25 +0100 Subject: chore: remove default Next api routes I'm not using them. --- src/pages/api/hello.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/pages/api/hello.ts (limited to 'src') diff --git a/src/pages/api/hello.ts b/src/pages/api/hello.ts deleted file mode 100644 index 89e4d6b..0000000 --- a/src/pages/api/hello.ts +++ /dev/null @@ -1,13 +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' }); -} -- cgit v1.2.3