mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 23:53:19 +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 {
|
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 {
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user