From 4bfaaa72ce491eb2787fb184dfc9f4b0ecd0620f Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 28 Mar 2026 15:13:11 -0700 Subject: [PATCH] Add URI to user resource --- platform/user.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/user.go b/platform/user.go index 83ce5c5e..c77b87d6 100644 --- a/platform/user.go +++ b/platform/user.go @@ -32,6 +32,7 @@ type User struct { PasswordHash string `json:"-"` PasswordHashType string `json:"-"` Role string `json:"role"` + URI string `json:"uri"` Username string `json:"username"` model *models.User @@ -58,6 +59,7 @@ func newUser(ctx context.Context, org Organization, user *models.User) User { PasswordHash: user.PasswordHash, PasswordHashType: string(user.PasswordHashType), Role: user.Role.String(), + URI: fmt.Sprintf("/user/%d", user.ID), Username: user.Username, model: user,