created next js project

This commit is contained in:
Timur Ercan
2022-11-14 23:12:51 +01:00
parent d8f850a69f
commit 15b8c8bf7d
14 changed files with 5194 additions and 0 deletions

13
pages/api/hello.ts Normal file
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' })
}