alas/web/pages/api/hello.js
2022-07-03 17:29:11 +02:00

5 lines
170 B
JavaScript

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