Commit 079bd95
Add PUT /users/:id route
Validates name/email are present (400), looks up the user via
store.updateUser (404 if missing), and returns the updated user
on success. Completes the update-user feature from db/store.js.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 4f3eebc commit 079bd95
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
35 | 53 | | |
0 commit comments