MCPcopy
hub / github.com/vercel/next.js / handler

Function handler

packages/create-next-app/templates/default/ts/pages/api/hello.ts:8–13  ·  view source on GitHub ↗
(
  req: NextApiRequest,
  res: NextApiResponse<Data>,
)

Source from the content-addressed store, hash-verified

6};
7
8export default function handler(
9 req: NextApiRequest,
10 res: NextApiResponse<Data>,
11) {
12 res.status(200).json({ name: "John Doe" });
13}

Callers

nothing calls this directly

Calls 2

jsonMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected