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