aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-02 11:32:25 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-02 11:32:25 +0100
commit248d5dc99aad62bfeab45271d7b2ba0a78e8f6a6 (patch)
tree84d291e7e4a688d28ac4dd9729a844cba4a8c420 /src/pages
parent0d0c01be2e92a9c370e53466b857876981da8f7e (diff)
chore: remove default Next api routes
I'm not using them.
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/api/hello.ts13
1 files changed, 0 insertions, 13 deletions
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<Data>
-) {
- res.status(200).json({ name: 'John Doe' });
-}