feat: add telegram-style resource stream
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user