From 3016de67f35f390734096334fe4e63f63d7f28da Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Sun, 2 Feb 2025 11:15:43 -0500 Subject: [PATCH] rename item --- pkg/rest/share.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/rest/share.go b/pkg/rest/share.go index 2a6633e..d57b442 100644 --- a/pkg/rest/share.go +++ b/pkg/rest/share.go @@ -68,9 +68,9 @@ type SharedItem interface { } type shareResponse struct { - ID ID `json:"id"` - Type shares.EntityType `json:"type"` - Item SharedItem `json:"item,omitempty"` + ID ID `json:"id"` + Type shares.EntityType `json:"type"` + SharedItem SharedItem `json:"sharedItem,omitempty"` } func ShareFrom(ctx context.Context) *shares.Share { @@ -97,9 +97,9 @@ func respondShareHandler(ie EntityFunc) ShareHandlerFunc { } sRes := shareResponse{ - ID: id, - Type: share.Type, - Item: res, + ID: id, + Type: share.Type, + SharedItem: res, } respond(w, r, sRes)