MCPcopy
hub / github.com/key-networks/ztncui / network_detail

Function network_detail

src/controllers/zt.js:76–86  ·  view source on GitHub ↗
(nwid)

Source from the content-addressed store, hash-verified

74}
75
76const network_detail = async function(nwid) {
77 const options = await init_options();
78
79 try {
80 const response = await got(ZT_ADDR + '/controller/network/'
81 + nwid, options);
82 return response.body;
83 } catch(err) {
84 throw(err);
85 }
86}
87exports.network_detail = network_detail;
88
89exports.network_create = async function(name) {

Callers 1

zt.jsFile · 0.85

Calls 1

init_optionsFunction · 0.85

Tested by

no test coverage detected