Initial commit from Create Next App
This commit is contained in:
6
web/pages/api/hello.js
Normal file
6
web/pages/api/hello.js
Normal file
@@ -0,0 +1,6 @@
|
||||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
|
||||
export default (req, res) => {
|
||||
res.statusCode = 200
|
||||
res.json({ name: 'John Doe' })
|
||||
}
|
||||
Reference in New Issue
Block a user