Skip to content

Add PUT /users/:id endpoint to update a user - #83

Open
peterkudlicka wants to merge 3 commits into
mate-academy:mainfrom
peterkudlicka:update-user
Open

Add PUT /users/:id endpoint to update a user#83
peterkudlicka wants to merge 3 commits into
mate-academy:mainfrom
peterkudlicka:update-user

Conversation

@peterkudlicka

Copy link
Copy Markdown

Summary

  • Add updateUser store helper in db/store.js to update a user's name/email by id
  • Wire up PUT /users/:id route in routes/users.js, validating required fields (400) and returning 404 for unknown ids
  • Add CLAUDE.md / NOTES.md project docs

Test plan

  • node --test tests/update-user.test.js tests/users.test.js tests/notes.test.js — all 9 tests pass

🤖 Generated with Claude Code

peterkudlicka and others added 3 commits August 14, 2026 21:59
Adds a store-level function to update an existing user's name and
email by id, returning undefined when the id doesn't exist.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Wires up the update-user store helper via an HTTP endpoint, validating
required fields and returning 404 for unknown ids.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant