Commit 0d14e8c
feat: add PUT /users/:id route
Wires the update-a-user endpoint into the users resource. It rejects
a missing name or email with 400 (same check as POST /users), coerces
the id param to a number to match the store's strict id comparison,
returns 404 when store.updateUser finds no such user, and responds
with the updated user on success.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019LQYyxNEbgzmiBWqaq8o9f1 parent a735995 commit 0d14e8c
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