All tasksBeginner+100 XP1–2 hoursOpen
Add GET /api/members/:username
GET /api/members lists everyone, but there is no way to fetch one member. The store already has findByUsername(); expose it.
What you'll learn
Add a route with a path parameter, return 404 for a miss, and test both.
Acceptance criteria
- `GET /api/members/<username>` returns 200 with `{ member }` (no email, no password hash)
- An unknown username returns 404 `{ error: "Not found" }`
- Tests for both cases in `test/api.test.js`
- `npm test` passes
Contribution rules
- Work on a branch named
task-12-… - Your PR description must include
Closes #12 - Open the PR from the GitHub account you signed in with
- A maintainer must approve and merge it