MCPcopy Create free account
hub / github.com/BuilderIO/framework-benchmarks / handler

Function handler

frameworks/fresh/routes/api/joke.ts:17–21  ·  view source on GitHub ↗
(_req: Request, _ctx: HandlerContext)

Source from the content-addressed store, hash-verified

15];
16
17export const handler = (_req: Request, _ctx: HandlerContext): Response => {
18 const randomIndex = Math.floor(Math.random() * JOKES.length);
19 const body = JOKES[randomIndex];
20 return new Response(body);
21};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected