diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-04-27 13:49:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-27 13:49:00 +0000 |
| commit | 4ae2492977839f403ad7c2429f163f919b96f8c9 (patch) | |
| tree | 11d3ce68e0d9e7258e090332434bbcd60aa8a1a0 /pages/api | |
| parent | e05bbf161bc0ed2b948b6eecc402240c46ad6f76 (diff) | |
| download | war-of-1812-4ae2492977839f403ad7c2429f163f919b96f8c9.tar.gz war-of-1812-4ae2492977839f403ad7c2429f163f919b96f8c9.tar.bz2 war-of-1812-4ae2492977839f403ad7c2429f163f919b96f8c9.zip | |
added next files
Diffstat (limited to 'pages/api')
| -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' }) +} |
