Przeglądaj źródła

remove unnecessary modules

Yuki Takei 1 rok temu
rodzic
commit
2fbaf39b39
1 zmienionych plików z 0 dodań i 13 usunięć
  1. 0 13
      apps/app/src/pages/api/hello.ts

+ 0 - 13
apps/app/src/pages/api/hello.ts

@@ -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' });
-}