Website/pages/api/hello.js

7 lines
173 B
JavaScript
Executable file

// 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' })
}