diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-02-12 14:14:45 +0000 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-02-12 14:14:45 +0000 |
| commit | a2ead3c3f51e4cdce01a75ad8235f49951b0fff6 (patch) | |
| tree | 363c1b4f3441238ec942de81d5a177799911109f /pages/api | |
| download | snug-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.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' }) +} |
