Skip to content

Commit

Permalink
also return the request in the reservation so we can determine whethe…
Browse files Browse the repository at this point in the history
…r we need to provision a new share
  • Loading branch information
qrkourier committed Nov 3, 2023
1 parent 8e42f45 commit cbea57e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ type ShareRequest struct {
}

type Share struct {
Token string `json:"token"`
FrontendEndpoints []string `json:"frontend_endpoints"`
Token string `json:"token"`
FrontendEndpoints []string `json:"frontend_endpoints"`
Request *ShareRequest `json:"request"`
}

type AccessRequest struct {
Expand Down
1 change: 1 addition & 0 deletions sdk/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func CreateShare(root env_core.Root, request *ShareRequest) (*Share, error) {
return &Share{
Token: in.Payload.ShrToken,
FrontendEndpoints: in.Payload.FrontendProxyEndpoints,
Request: request,
}, nil
}

Expand Down

0 comments on commit cbea57e

Please sign in to comment.