Task 4: Upload Routes Extended - upload.js: Generate preview after single file upload - batchUpload.js: Generate previews for all batch uploads - Async preview generation (non-blocking response) - Auto-update preview_path in database after generation Task 5: Repository with preview_path - GroupRepository: Include preview_path in INSERT - getGroupById: Return previewPath in image objects - groupFormatter: Add previewPath to formatGroupDetail() - All queries now support preview_path column Task 6: API Endpoints Extended - Add PREVIEW_STATIC_DIRECTORY constant (/previews) - Serve preview images via express.static - All existing endpoints now return previewPath field - Fallback to filePath if preview not available (frontend) |
||
|---|---|---|
| .. | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| Dockerfile | ||
| package.json | ||