feat: add telegram-style resource stream

This commit is contained in:
TerryM
2026-05-25 05:25:57 +08:00
parent aaebd7ccd1
commit a784f159fe
45 changed files with 3201 additions and 1160 deletions

View File

@@ -44,11 +44,6 @@ export async function postJSON<T>(
return res.json() as Promise<T>;
}
/** Best-effort favorite counter sync (anonymous; matches localStorage favorite). */
export function postFavoriteDelta(id: string, add: boolean) {
return postJSON(`/api/resources/${id}/favorite`, { add }).catch(() => {});
}
export async function putJSON<T>(
path: string,
body: unknown,