Created Next Js Project

This commit is contained in:
brausjonas
2023-05-02 14:47:34 +02:00
parent a67e293cdc
commit 975b0fca96
22 changed files with 4637 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' })
}