fullsizemalt
|
22574359ba
|
feat: Shopping List Backend API Complete
📦 Supply Items Backend (Phase 3A)
✅ Controller (supplies.controller.ts):
- getSupplyItems() - List all items
- getShoppingList() - Items below threshold
- getSupplyItem() - Single item detail
- createSupplyItem() - Add new item
- updateSupplyItem() - Edit item
- deleteSupplyItem() - Remove item
- markAsOrdered() - Track last ordered date
- adjustQuantity() - Add/subtract stock
✅ Routes (supplies.routes.ts):
- GET /api/supplies
- GET /api/supplies/shopping-list
- GET /api/supplies/:id
- POST /api/supplies
- PATCH /api/supplies/:id
- DELETE /api/supplies/:id
- POST /api/supplies/:id/order
- POST /api/supplies/:id/adjust
✅ Server Integration:
- Registered supplies routes
Next: Frontend UI + Migration
|
2025-12-09 15:11:41 -08:00 |
|