From 9033af9170d90994bc75a7d263b6dd55bcb07be2 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 9 Apr 2021 15:32:54 -0400 Subject: added next.js 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