Centralized TypeScript constants defining API version and all backend endpoint URLs for the frontend, ensuring a single source of truth and easy path updates.
// Source: https://github.com/Evil0ctal/Douyin_TikTok_Download_API | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Every path the console calls, in one place.
*
* Paths are part of the API contract and are never translated. Keeping them here
* means a backend rename is one edit, not a grep across fifteen pages.
* See docs/design/06-api-auth-mcp.md and docs/design/15-operations.md.
*/
export const API_V1 = '/api/v1'
export const paths = {
setup: {
status: '/api/setup/status',
init: '/api/setup/init',
},
auth: {
/** The caller's own principal. `sessions` below is the device list, not this. */
me: `${API_V1}/auth/me`,
login: `${API_V1}/auth/log
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key