From a2ead3c3f51e4cdce01a75ad8235f49951b0fff6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 12 Feb 2021 14:14:45 +0000 Subject: Inital commit --- 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..9987aff --- /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 (req, res) => { + res.status(200).json({ name: 'John Doe' }) +} -- cgit v1.2.3