From 14d50090f284b226d30cf0c6afcad61428d2d947 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 9 Feb 2022 22:14:02 -0500 Subject: Inital rewrite --- pages/api/hello.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pages/api/hello.js (limited to 'pages/api') diff --git a/pages/api/hello.js b/pages/api/hello.js new file mode 100644 index 0000000..df63de8 --- /dev/null +++ b/pages/api/hello.js @@ -0,0 +1,5 @@ +// Next.js API route support: https://nextjs.org/docs/api-routes/introduction + +export default function handler(req, res) { + res.status(200).json({ name: 'John Doe' }) +} -- cgit v1.2.3