also return the request in the reservation so we can determine whether we need to provision a new share

This commit is contained in:
Kenneth Bingham 2023-11-02 20:32:48 -04:00
parent 795b953845
commit bb9c9f1904
2 changed files with 4 additions and 2 deletions

View File

@ -35,6 +35,7 @@ type ShareRequest struct {
type Share struct { type Share struct {
Token string `json:"token"` Token string `json:"token"`
FrontendEndpoints []string `json:"frontend_endpoints"` FrontendEndpoints []string `json:"frontend_endpoints"`
Request *ShareRequest `json:"request"`
} }
type AccessRequest struct { type AccessRequest struct {

View File

@ -57,6 +57,7 @@ func CreateShare(root env_core.Root, request *ShareRequest) (*Share, error) {
return &Share{ return &Share{
Token: in.Payload.ShrToken, Token: in.Payload.ShrToken,
FrontendEndpoints: in.Payload.FrontendProxyEndpoints, FrontendEndpoints: in.Payload.FrontendProxyEndpoints,
Request: request,
}, nil }, nil
} }