mirror of
https://github.com/docmost/docmost.git
synced 2026-07-16 09:46:56 +10:00
879aa2c3d8
* feat: watchers notification and email preferences * fix: email copy * digests * clean up * fix * clean up * move backlinks queue-up to history processor * fix * fix keys * feat: group notifications * filter * adjust email digest window
17 lines
607 B
TypeScript
17 lines
607 B
TypeScript
import api from "@/lib/api-client";
|
|
|
|
export async function watchPage(pageId: string): Promise<{ watching: boolean }> {
|
|
const req = await api.post<{ watching: boolean }>("/pages/watch", { pageId });
|
|
return req.data;
|
|
}
|
|
|
|
export async function unwatchPage(pageId: string): Promise<{ watching: boolean }> {
|
|
const req = await api.post<{ watching: boolean }>("/pages/unwatch", { pageId });
|
|
return req.data;
|
|
}
|
|
|
|
export async function getWatchStatus(pageId: string): Promise<{ watching: boolean }> {
|
|
const req = await api.post<{ watching: boolean }>("/pages/watch-status", { pageId });
|
|
return req.data;
|
|
}
|