mirror of
https://github.com/r-freeman/nextjs-with-docker.git
synced 2024-11-14 11:15:40 +00:00
6 lines
169 B
JavaScript
6 lines
169 B
JavaScript
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
|
|
|
export default function hello(req, res) {
|
|
res.status(200).json({ name: "John Doe" });
|
|
}
|