[examples/fivethirtyeight][lg] - first commmit of 538 Example (#861)

This commit is contained in:
Luccas Mateus
2023-05-08 20:43:28 -03:00
committed by GitHub
parent 6705bc1e2d
commit d2e9c54c13
18 changed files with 7022 additions and 0 deletions

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