NextJS_DOC/pages/api/hello.js

6 lines
170 B
JavaScript
Raw Normal View History

2023-03-24 10:11:04 +00:00
// 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' })
}