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

@ -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 {

View File

@ -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
}