MCPcopy Create free account
hub / github.com/SamuelZ12/longcut / fetchAllNotes

Function fetchAllNotes

lib/notes-client.ts:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69export async function fetchAllNotes(): Promise<NoteWithVideo[]> {
70 const response = await csrfFetch.get('/api/notes/all');
71
72 if (!response.ok) {
73 throw new Error('Failed to fetch all notes');
74 }
75
76 const data = await response.json();
77 return (data.notes || []) as NoteWithVideo[];
78}

Callers 1

AllNotesPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected