From 6c1cbe9f4d956ad6140c780b2f88f5de4e4eee67 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 12 Dec 2021 23:23:52 +0100 Subject: build: move global styles and pages inside src directory --- src/pages/api/hello.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/pages/api/hello.ts (limited to 'src/pages/api/hello.ts') diff --git a/src/pages/api/hello.ts b/src/pages/api/hello.ts new file mode 100644 index 0000000..89e4d6b --- /dev/null +++ b/src/pages/api/hello.ts @@ -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 +) { + res.status(200).json({ name: 'John Doe' }); +} -- cgit v1.2.3