MCPcopy Create free account
hub / github.com/SuboptimalEng/coding-tutorials / helloAPI

Function helloAPI

react-infinite-scroller/pages/api/hello.js:3–5  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

1// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2
3export default function helloAPI(req, res) {
4 res.status(200).json({ name: 'John Doe' })
5}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected