aboutsummaryrefslogtreecommitdiff
path: root/pages/api/hello.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2021-02-09 16:51:13 +0000
committerAndrew Lee <alee14498@protonmail.com>2021-02-09 16:51:13 +0000
commit1a798bdb4003920cd51134a55a6db8fa640fce29 (patch)
tree45f16845ae14a9dbde82cfce2d45ddcf6713e09e /pages/api/hello.js
downloadlawrence-hill-1a798bdb4003920cd51134a55a6db8fa640fce29.tar.gz
lawrence-hill-1a798bdb4003920cd51134a55a6db8fa640fce29.tar.bz2
lawrence-hill-1a798bdb4003920cd51134a55a6db8fa640fce29.zip
Added project files
Diffstat (limited to 'pages/api/hello.js')
-rw-r--r--pages/api/hello.js5
1 files changed, 5 insertions, 0 deletions
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' })
+}