import{v as s}from"./index-CzUo07dn.js";const h=(t,e)=>new Promise((r,o)=>{fetch(`/1.0/networks/${t}/forwards?project=${e}&recursion=1`).then(s).then(n=>r(n.metadata)).catch(o)}),d=(t,e,r)=>new Promise((o,n)=>{fetch(`/1.0/networks/${t}/forwards/${e}?project=${r}&recursion=1`).then(s).then(a=>o(a.metadata)).catch(n)}),w=(t,e,r)=>new Promise((o,n)=>{fetch(`/1.0/networks/${t}/forwards?project=${r}`,{method:"POST",body:JSON.stringify(e)}).then(s).then(o).catch(n)}),f=(t,e,r)=>new Promise((o,n)=>{fetch(`/1.0/networks/${t}/forwards/${e.listen_address}?project=${r}`,{method:"PUT",body:JSON.stringify(e)}).then(s).then(o).catch(n)}),i=(t,e,r)=>new Promise((o,n)=>{fetch(`/1.0/networks/${t.name}/forwards/${e.listen_address}?project=${r}`,{method:"DELETE"}).then(s).then(o).catch(n)});export{h as a,w as c,i as d,d as f,f as u};
