Initial commit from Create Next App

This commit is contained in:
Arjun Patel
2022-02-13 12:07:47 -08:00
commit 2513b29849
15 changed files with 2023 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
// 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' })
}