MCPcopy Create free account
hub / github.com/GmpABR/NexusFlow / GetProfile

Method GetProfile

backend/Controllers/UsersController.cs:53–77  ·  view source on GitHub ↗

── GET /api/users/me ────────────────────────────────────────────────

()

Source from the content-addressed store, hash-verified

51
52 // ── GET /api/users/me ────────────────────────────────────────────────
53 [HttpGet("me")]
54 public async Task<ActionResult<UserProfileDto>> GetProfile()
55 {
56 var userId = GetUserId();
57 var user = await _context.Users.FindAsync(userId);
58 if (user == null) return NotFound();
59
60 return Ok(new UserProfileDto
61 {
62 Id = user.Id,
63 Username = user.Username,
64 Email = user.Email,
65 AvatarUrl = user.AvatarUrl,
66 FullName = user.FullName,
67 JobTitle = user.JobTitle,
68 Department = user.Department,
69 Organization = user.Organization,
70 Location = user.Location,
71 Bio = user.Bio,
72 ThemePreference = user.ThemePreference,
73 OpenRouterApiKey = user.OpenRouterApiKey,
74 DisplayOfflineAlways = user.DisplayOfflineAlways,
75 CreatedAt = user.CreatedAt
76 });
77 }
78
79
80

Callers 1

Calls

no outgoing calls

Tested by 1