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

Function fetch

api/metadata/src/worker.ts:11–23  ·  view source on GitHub ↗
(
		request: Request,
		env: Env,
		ctx: ExecutionContext,
	)

Source from the content-addressed store, hash-verified

9
10export default {
11 async fetch(
12 request: Request,
13 env: Env,
14 ctx: ExecutionContext,
15 ): Promise<Response> {
16 return await router
17 .handle(request, env, ctx)
18 .catch((error_) => {
19 console.error(error_);
20 return error(error_);
21 })
22 .then(corsify);
23 },
24
25 // This is a daily scheduled event to update the metadata.
26 async scheduled(

Callers 6

updateMetadataFunction · 0.50
updateListFunction · 0.50
updateVariableListFunction · 0.50
updateAxisRegistryFunction · 0.50
updatePackageStatAllFunction · 0.50
getAvailableVersionsFunction · 0.50

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected