()
| 984 | this.resetNoteSync(noteId); |
| 985 | |
| 986 | const note = this.getNote(noteId); |
| 987 | return Response.json(note); |
| 988 | } |
| 989 | |
| 990 | // Public notes (no auth required — used by public page renderer) |
| 991 | if (request.method === "GET" && path === "/public-notes") { |
| 992 | const rows = this.sql.exec( |
| 993 | `SELECT n.id, n.title, n.content, n.published_at, n.created_at, f.name as folder_name |