Initial commit from Create Next App

This commit is contained in:
Ludoviko 2021-07-23 17:14:54 +01:00
commit 9b77a46acc
No known key found for this signature in database
GPG key ID: 1E66DEA3F5D623D1
15 changed files with 3544 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' })
}