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

Function handler

apps/web/pages/api/all/index.tsx:123–135  ·  view source on GitHub ↗
(
  request: NextApiRequest,
  response: NextApiResponse
)

Source from the content-addressed store, hash-verified

121};
122
123export default async function handler(
124 request: NextApiRequest,
125 response: NextApiResponse
126) {
127 if (request.method === 'OPTIONS') {
128 return preflight(request, response, ['GET']);
129 }
130 cors(request, response);
131 if (request.method === 'GET') {
132 return handlers.index(request, response);
133 }
134 return response.status(405).json({});
135}

Callers

nothing calls this directly

Calls 2

preflightFunction · 0.90
corsFunction · 0.90

Tested by

no test coverage detected