bbgo_origin/apps/frontend/pages/api/hello.js
2022-09-06 18:55:43 +08:00

7 lines
171 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' });
};