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

Function getAxisRegistry

api/metadata/src/variable/get.ts:35–49  ·  view source on GitHub ↗
(env: Env, ctx: ExecutionContext)

Source from the content-addressed store, hash-verified

33};
34
35export const getAxisRegistry = async (env: Env, ctx: ExecutionContext) => {
36 const value = await env.METADATA.get<AxisRegistry>(
37 METADATA_KEYS.axisRegistry,
38 {
39 type: 'json',
40 cacheTtl: KV_TTL,
41 },
42 );
43
44 if (!value) {
45 return await updateAxisRegistry(env, ctx);
46 }
47
48 return value;
49};

Callers 1

router.tsFile · 0.90

Calls 1

updateAxisRegistryFunction · 0.90

Tested by

no test coverage detected