Files
monthlytracker/src/app/expenses/[id]
Vijayakanth Manoharan e8c23405e7 Add expense editing with inline form and PATCH API route
- Add updateExpense() to lib/expenses.ts
- Add PATCH /expenses/:id route with validation and P2025 not-found handling
- Edit button on each expense card pre-fills form; cancel restores add mode
- Submit dynamically PATCHes or POSTs depending on edit state

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 17:20:13 -04:00
..