Init nextjs

This commit is contained in:
aronmal 2023-04-16 12:54:18 +02:00
parent ba1b1d7080
commit db76530ef4
Signed by: aronmal
GPG key ID: 816B7707426FC612
153 changed files with 4261 additions and 868 deletions

13
src/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' })
}