MCPcopy Create free account
hub / github.com/Dhravya/notty / getTrashNotes

Method getTrashNotes

src/durable-objects/user-notes.ts:1006–1010  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1004 }
1005
1006 // --- Media routes ---
1007 if (request.method === "GET" && path === "/media") {
1008 const rows = this.sql.exec(
1009 "SELECT id, type, filename, r2_key, mime_type, size, width, height, published, caption, created_at, updated_at FROM media ORDER BY created_at DESC"
1010 ).toArray();
1011 return Response.json(rows);
1012 }
1013 if (request.method === "POST" && path === "/media") {

Callers 1

fetchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected