diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-02 11:32:25 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-02 11:32:25 +0100 |
| commit | 248d5dc99aad62bfeab45271d7b2ba0a78e8f6a6 (patch) | |
| tree | 84d291e7e4a688d28ac4dd9729a844cba4a8c420 /src | |
| parent | 0d0c01be2e92a9c370e53466b857876981da8f7e (diff) | |
chore: remove default Next api routes
I'm not using them.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/api/hello.ts | 13 |
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' }); -} |
