Skip to content

[BE-01] Build UserProfileController #463

@mftee

Description

@mftee

Problem

Users have no API endpoint to view or update their own profile. The User entity and UsersService exist but there is no controller exposing them to authenticated users.

Proposed Solution

Create a UserProfileController inside backend/src/module/user-profile/. This module must be self-contained and must not modify any existing files outside the module folder.

Acceptance Criteria

  • GET /api/module/users/me returns the current authenticated user's profile
  • PATCH /api/module/users/me accepts fullName and email fields and updates the user record
  • Both endpoints are protected with JwtAuthGuard
  • Response never includes the passwordHash field
  • Returns 401 when no valid JWT is provided
  • Returns 400 when PATCH body contains invalid field values

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions