MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / markRead

Function markRead

ui/src/api/inbox.ts:95–99  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

93 },
94
95 async markRead(id: string): Promise<{ ok: true; id: string; readAt: number }> {
96 return fetchJson(`/api/inbox/${encodeURIComponent(id)}/read`, {
97 method: 'PUT',
98 })
99 },
100
101 async markUnread(id: string): Promise<{ ok: true; id: string }> {
102 return fetchJson(`/api/inbox/${encodeURIComponent(id)}/read`, {

Callers 2

selectAndReadFunction · 0.50
InboxPageFunction · 0.50

Calls 1

fetchJsonFunction · 0.90

Tested by

no test coverage detected