MCPcopy Create free account
hub / github.com/fontsource/fontsource / getMetadata

Function getMetadata

website/app/utils/metadata.server.ts:15–16  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

13const STATS_URL = (id: string) => `https://api.fontsource.org/v1/stats/${id}`;
14
15const getMetadata = async (id: string): Promise<Metadata> =>
16 await fetchApiData<Metadata>(METADATA_URL + id);
17
18const getVariable = async (id: string): Promise<VariableData> =>
19 await fetchApiData<VariableData>(VARIABLE_URL(id));

Callers 3

loaderFunction · 0.90
loaderFunction · 0.90
loaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected