UNPKG

24fire-full-api

Version:
13 lines (12 loc) 348 B
async function config(SERVER_API_KEY){ const response = await fetch("https://api.24fire.de/kvm/config", { method: 'GET', headers: {'X-FIRE-APIKEY': '' + SERVER_API_KEY} }); const req = await response.text(); const req_answer = JSON.parse(req); return req_answer; }; module.exports = { config, };