From 1a798bdb4003920cd51134a55a6db8fa640fce29 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 9 Feb 2021 16:51:13 +0000 Subject: Added project files --- pages/api/hello.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pages/api/hello.js (limited to 'pages/api/hello.js') 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