mirror of
https://github.com/openziti/zrok.git
synced 2024-11-24 17:13:51 +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
@ -35,6 +35,7 @@ type ShareRequest struct {
|
||||
type Share struct {
|
||||
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