From 5db15b6ec7cd41cc15214f4448b064f4dd11f974 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 20 Aug 2021 13:17:57 -0700 Subject: demos -> examples Former-commit-id: 19a5d395bd41b0a0b854cdf749eb96149f91cbe1 --- examples/hello-next/pages/api/hello.tsx | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 examples/hello-next/pages/api/hello.tsx (limited to 'examples/hello-next/pages/api/hello.tsx') diff --git a/examples/hello-next/pages/api/hello.tsx b/examples/hello-next/pages/api/hello.tsx new file mode 100644 index 000000000..df63de88f --- /dev/null +++ b/examples/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' }) +} -- cgit v1.2.3