MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / handler

Function handler

apps/web/pages/api/read-status/index.ts:68–80  ·  view source on GitHub ↗
(
  request: NextApiRequest,
  response: NextApiResponse
)

Source from the content-addressed store, hash-verified

66}
67
68export default async function handler(
69 request: NextApiRequest,
70 response: NextApiResponse
71) {
72 if (request.method === 'OPTIONS') {
73 return preflight(request, response, ['POST']);
74 }
75 cors(request, response);
76 if (request.method === 'POST') {
77 return await post(request, response);
78 }
79 return response.status(405).end();
80}

Callers

nothing calls this directly

Calls 4

preflightFunction · 0.90
corsFunction · 0.90
postFunction · 0.70
endMethod · 0.45

Tested by

no test coverage detected