MCPcopy Create free account
hub / github.com/Moli-X/Resources / httpAPI

Function httpAPI

Script/Surge_Panel.js:65–71  ·  view source on GitHub ↗
(path = "", method = "POST", body = null)

Source from the content-addressed store, hash-verified

63}
64
65function httpAPI(path = "", method = "POST", body = null) {
66 return new Promise((resolve) => {
67 $httpAPI(method, path, body, (result) => {
68 resolve(result);
69 });
70 });
71}
72
73function getParams(param) {
74 return Object.fromEntries(

Callers 1

Surge_Panel.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected