MCPcopy Create free account
hub / github.com/adobe/react-spectrum / handler

Function handler

examples/rsp-next-ts/pages/api/hello.ts:8–10  ·  view source on GitHub ↗
(req: NextApiRequest, res: NextApiResponse<Data>)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected