source:
pages/api/hello.js@
6568bde
Last change on this file since 6568bde was 6568bde, checked in by , 2 years ago | |
---|---|
|
|
File size: 170 bytes |
Rev | Line | |
---|---|---|
[6568bde] | 1 | // Next.js API route support: https://nextjs.org/docs/api-routes/introduction |
2 | ||
3 | export default function handler(req, res) { | |
4 | res.status(200).json({ name: 'John Doe' }) | |
5 | } |
Note:
See TracBrowser
for help on using the repository browser.