Retrieve monitor server information.
OK
Enable monitor server or not.
The extension number of monitor server.
const response = await fetch('http://127.0.0.1:8888/api/monitor', { method: 'GET', headers: {}, }); const data = await response.json();
{ "enabled": false, "extension_number": {} }
Update monitor server
const response = await fetch('http://127.0.0.1:8888/api/monitor', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();