Implement task 6.1: Create PUT /api/auth/profile endpoint for updating user display name

- Create src/app/api/auth/profile/route.ts with PUT handler
- Validates user is authenticated (returns 401 if not)
- Validates request body has a non-empty name field
- Updates user's name in the database
- Returns 200 with updated user data

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marko Djordjevic 2026-02-20 10:20:20 +01:00
parent d4e92cf88f
commit c36ab7c146
27 changed files with 2699 additions and 2 deletions

View file

@ -8,6 +8,13 @@
"when": 1771332001387,
"tag": "0000_nifty_gauntlet",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1771577402984,
"tag": "0001_daffy_zaladane",
"breakpoints": true
}
]
}