diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-04-09 15:32:54 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-04-09 15:32:54 -0400 |
| commit | 9033af9170d90994bc75a7d263b6dd55bcb07be2 (patch) | |
| tree | b9204c6a290461362eacd1969cdf941b76d48596 /pages/api/hello.js | |
| parent | 21f4fb19d7e48328f8d0c9777c2a51e5de1141fc (diff) | |
| download | personal-website-9033af9170d90994bc75a7d263b6dd55bcb07be2.tar.gz personal-website-9033af9170d90994bc75a7d263b6dd55bcb07be2.tar.bz2 personal-website-9033af9170d90994bc75a7d263b6dd55bcb07be2.zip | |
added next.js files
Diffstat (limited to 'pages/api/hello.js')
| -rw-r--r-- | pages/api/hello.js | 5 |
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' }) +} |
