20 lines
520 B
TypeScript
20 lines
520 B
TypeScript
|
|
/**
|
||
|
|
* Centralized backend endpoint definitions.
|
||
|
|
*
|
||
|
|
* One source of truth for the proxy API base URL — individual resource
|
||
|
|
* modules (proxyFonts, filters) append their own paths.
|
||
|
|
*/
|
||
|
|
|
||
|
|
export const API_BASE_URL = 'https://api.glyphdiff.com/api/v1' as const;
|
||
|
|
|
||
|
|
export const API_ENDPOINTS = {
|
||
|
|
/**
|
||
|
|
* Font catalog + per-id detail + batch lookup
|
||
|
|
*/
|
||
|
|
fonts: `${API_BASE_URL}/fonts`,
|
||
|
|
/**
|
||
|
|
* Filter metadata (providers, categories, subsets)
|
||
|
|
*/
|
||
|
|
filters: `${API_BASE_URL}/filters`,
|
||
|
|
} as const;
|