Initial commit from Create Next App

This commit is contained in:
Mathias Schopmans
2024-02-09 08:23:21 +01:00
committed by Mathias Schopmans
parent ab005e03b3
commit 81a15c9cd2
15 changed files with 4689 additions and 0 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" });
}