Project-Image-Uploader/backend/src
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
..
database feat(db): Add deletion_log table and cleanup indexes 2025-11-08 12:05:34 +01:00
middlewares Initial Commit 2025-10-15 21:33:00 +02:00
models Initial Commit 2025-10-15 21:33:00 +02:00
repositories feat(backend): Implement automatic cleanup service 2025-11-08 12:23:49 +01:00
routes feat(api): Add admin endpoints for deletion log 2025-11-08 12:25:20 +01:00
services feat(backend): Implement automatic cleanup service 2025-11-08 12:23:49 +01:00
utils feat: Implement image descriptions - Backend & Core Frontend 2025-11-07 18:34:16 +01:00
constants.js feat: integrate preview generation into upload flow 2025-10-30 20:41:06 +01:00
index.js Initial Commit 2025-10-15 21:33:00 +02:00
server.js feat(backend): Implement automatic cleanup service 2025-11-08 12:23:49 +01:00