Website/pages/api/hello.js

7 lines
173 B
JavaScript
Raw Permalink Normal View History

2021-10-24 17:04:22 +00:00
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
export default function handler(req, res) {
2022-02-15 17:08:29 +00:00
2021-10-24 17:04:22 +00:00
res.status(200).json({ name: 'John Doe' })
}