Project-Image-Uploader/docs
matthias.lotz c0ef92ec23 feat(api): Add admin endpoints for deletion log
Phase 3 Complete - Backend API

New Admin Endpoints (/api/admin/):
- GET /deletion-log?limit=10
  - Returns recent deletion logs with pagination
  - Validation: limit 1-1000
  - Response: { deletions, total, limit }

- GET /deletion-log/all
  - Returns complete deletion history
  - Response: { deletions, total }

- GET /deletion-log/stats
  - Returns deletion statistics
  - Includes formatted file sizes (B/KB/MB/GB)
  - Response: { totalDeleted, totalImages, totalSize, lastCleanup }

Features:
- Comprehensive error handling
- Input validation
- Human-readable file size formatting
- Consistent JSON responses

Integration:
- admin.js router mounted at /api/admin
- Added to routes/index.js

Task completed:  3.6
2025-11-08 12:25:20 +01:00
..
FEATURE_PLAN-delete-unproved-groups.md feat(api): Add admin endpoints for deletion log 2025-11-08 12:25:20 +01:00
FEATURE_PLAN-image-description.md docs: Update documentation for image descriptions feature 2025-11-07 18:39:48 +01:00
FEATURE_PLAN-preview-images.md docs: add feature plan for preview images 2025-10-29 23:34:08 +01:00
FEATURE_PLAN-reordering.md docs: update feature plan with completion status 2025-11-03 21:22:15 +01:00
REORDERING_IMPLEMENTATION_REPORT.md docs: update README.md with new reordering features 2025-11-03 21:24:29 +01:00
UPGRADE_PLAN-upgrade-deps-react-node-20251028.md docs: complete upgrade documentation with CHANGELOG, smoke tests, and actual timelines 2025-10-29 23:10:21 +01:00