bbgo_origin/frontend/pages/api/hello.js
2021-01-24 14:14:25 +08:00

7 lines
168 B
JavaScript

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