aboutsummaryrefslogtreecommitdiff
path: root/pages/api
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2021-02-12 14:14:45 +0000
committerAndrew Lee <alee14498@protonmail.com>2021-02-12 14:14:45 +0000
commita2ead3c3f51e4cdce01a75ad8235f49951b0fff6 (patch)
tree363c1b4f3441238ec942de81d5a177799911109f /pages/api
downloadsnug-cup-a2ead3c3f51e4cdce01a75ad8235f49951b0fff6.tar.gz
snug-cup-a2ead3c3f51e4cdce01a75ad8235f49951b0fff6.tar.bz2
snug-cup-a2ead3c3f51e4cdce01a75ad8235f49951b0fff6.zip
Inital commit
Diffstat (limited to 'pages/api')
-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' })
+}