mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 15:43:22 +01:00
also return the request in the reservation so we can determine whether we need to provision a new share
This commit is contained in:
parent
795b953845
commit
bb9c9f1904
@ -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 {
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user