MCPcopy Index your code
hub / github.com/fontsource/fontsource / fetch

Function fetch

website/workers/app.ts:20–29  ·  view source on GitHub ↗
(request, env, ctx)

Source from the content-addressed store, hash-verified

18
19export default {
20 async fetch(request, env, ctx) {
21 const url = new URL(request.url);
22 const markdownResponse = await getDocsMarkdownResponse(url.pathname);
23
24 if (markdownResponse) return markdownResponse;
25
26 return requestHandler(request, {
27 cloudflare: { env, ctx },
28 });
29 },
30} satisfies ExportedHandler<Env>;

Callers 3

copyPageFunction · 0.50
SearchDialogFunction · 0.50
fetchApiDataFunction · 0.50

Calls 1

getDocsMarkdownResponseFunction · 0.90

Tested by

no test coverage detected