utility-function-extractor/pages/api/hello.js

6 lines
171 B
JavaScript
Raw Normal View History

// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
export default function helloAPI(req, res) {
res.status(200).json({ name: 'John Doe' })
}