diff --git a/app/api/hello.js b/app/api/hello.js new file mode 100644 index 0000000..33266ac --- /dev/null +++ b/app/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' }) +}