mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
implement store layer for service model changes (#103)
This commit is contained in:
@ -93,10 +93,12 @@ func (h *sharePublicHandler) Handle(params service.ShareParams, principal *rest_
|
||||
|
||||
frontendUrl := h.proxyUrl(svcName)
|
||||
sid, err := str.CreateService(envId, &store.Service{
|
||||
ZId: svcZId,
|
||||
Name: svcName,
|
||||
Frontend: frontendUrl,
|
||||
Backend: params.Body.BackendProxyEndpoint,
|
||||
ZId: svcZId,
|
||||
Name: svcName,
|
||||
Frontend: frontendUrl,
|
||||
Backend: params.Body.BackendProxyEndpoint,
|
||||
ShareMode: "public",
|
||||
BackendMode: "proxy",
|
||||
}, tx)
|
||||
if err != nil {
|
||||
logrus.Errorf("error creating service record: %v", err)
|
||||
|
Reference in New Issue
Block a user