diff options
author | 2021-08-17 18:49:58 -0700 | |
---|---|---|
committer | 2021-08-17 18:49:58 -0700 | |
commit | bbe0a3d58ccb420fe94b8d59934b2b54ed71f295 (patch) | |
tree | cf65bb41ae3557df4ec6d48908deaa47b33f97ce /demos/hello-next/pages/api/hello.tsx | |
parent | 68b6e80b911439cecbc78d23fab3be82e77f2997 (diff) | |
parent | 7a1ca0bc0cb93f62daedfb4d5dee1bd22020a9d2 (diff) | |
download | bun-bbe0a3d58ccb420fe94b8d59934b2b54ed71f295.tar.gz bun-bbe0a3d58ccb420fe94b8d59934b2b54ed71f295.tar.zst bun-bbe0a3d58ccb420fe94b8d59934b2b54ed71f295.zip |
Merge branch 'main' of github.com:Jarred-Sumner/esdev
Former-commit-id: 7aec17b6232cb51067a289944aa733466c0478fb
Diffstat (limited to 'demos/hello-next/pages/api/hello.tsx')
-rw-r--r-- | demos/hello-next/pages/api/hello.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/demos/hello-next/pages/api/hello.tsx b/demos/hello-next/pages/api/hello.tsx new file mode 100644 index 000000000..df63de88f --- /dev/null +++ b/demos/hello-next/pages/api/hello.tsx @@ -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' }) +} |