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