diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-04-11 16:34:38 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-04-11 16:34:38 -0400 |
| commit | a2818a9af6d6a8a5a0f530308aff996fb1fb40fa (patch) | |
| tree | d145167c45f59bd2435ac783c993a83b730de467 /pages/api/hello.js | |
| download | smart-cooker-a2818a9af6d6a8a5a0f530308aff996fb1fb40fa.tar.gz smart-cooker-a2818a9af6d6a8a5a0f530308aff996fb1fb40fa.tar.bz2 smart-cooker-a2818a9af6d6a8a5a0f530308aff996fb1fb40fa.zip | |
Inital commit
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..df63de8 --- /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 function handler(req, res) { + res.status(200).json({ name: 'John Doe' }) +} |
