start user pages

This commit is contained in:
sam 2024-08-22 17:27:04 +02:00
parent ef221b2c45
commit 2915893049
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
7 changed files with 29 additions and 12 deletions

View file

@ -21,11 +21,6 @@ public class UsersController(
public async Task<IActionResult> GetUserAsync(string userRef)
{
var user = await db.ResolveUserAsync(userRef, CurrentToken);
return await GetUserInnerAsync(user);
}
private async Task<IActionResult> GetUserInnerAsync(User user)
{
return Ok(await userRendererService.RenderUserAsync(
user,
selfUser: CurrentUser,