Commit Graph

4 Commits

Author SHA1 Message Date
Hiro
4e1d4f80cc fix: allow folderId in updateDocument and pass it through route handler
- Add folderId parameter to updateDocument service method
- Extract folderId from request body in PUT /documents/:id route
- Fixes move document to folder functionality
2026-03-28 14:12:42 +00:00
Hiro
b81e670ce4 feat: implement Projects and Folders API (v2 architecture)
- Add projectService.js with full CRUD + tree operations
- Add folderService.js with hierarchical folder support
- Add projects.js routes: GET/POST/PUT/DELETE /projects, /projects/:id/tree, /projects/:id/documents
- Add folders.js routes: GET/POST/PUT/DELETE /folders, /folders/:id/tree, /folders/:id/documents
- Update documentService.js to support projectId/folderId with backwards compat (libraryId)
- Update routes/index.js to mount new routers
- Maintain backwards compatibility with legacy libraryId
- All endpoints tested and working
2026-03-28 13:07:09 +00:00
Erwin
8b0b60db33 fix: add missing libraryService.js and fix two bugs
- Create missing src/services/libraryService.js (was imported but never created)
- Fix readJSONFile import in tagIndexer.js (unused import)
- Fix found.found?.libId typo in deleteDocument (double .found lookup)

These were blocking the application from starting.
2026-03-28 03:31:14 +00:00
Erwin
825dfba2a7 Implement SimpleNote Web API - full REST API with Express
- Express server with CORS, JSON middleware
- Auth middleware (Bearer token)
- Document CRUD with markdown storage
- Library CRUD with nested support
- Tag indexing and search
- Error handler middleware
- Config from env vars
- Init script for data structure
2026-03-28 03:27:27 +00:00