fix reverse proxy put and post

This commit is contained in:
pascal
2026-01-27 17:38:55 +01:00
parent 7b3523e25e
commit 73fbb3fc62
3 changed files with 5 additions and 4 deletions

View File

@@ -199,9 +199,10 @@ func operationToProtoType(op Operation) proto.ProxyMappingUpdateType {
}
}
func (r *ReverseProxy) FromAPIRequest(req *api.ReverseProxyRequest) {
func (r *ReverseProxy) FromAPIRequest(req *api.ReverseProxyRequest, accountID string) {
r.Name = req.Name
r.Domain = req.Domain
r.AccountID = accountID
targets := make([]Target, 0, len(req.Targets))
for _, apiTarget := range req.Targets {