Retrieve settings of IM server.
OK
Host IPV4 address.
Host IPV6 address.
Update IM server configuration.
const response = await fetch('http://127.0.0.1:8888/api/im', { method: 'GET', headers: {}, }); const data = await response.json();
{ "private_ipv4": "text", "private_ipv6": "text", "public_ipv4": "text", "public_ipv6": "text" }
const response = await fetch('http://127.0.0.1:8888/api/im', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();