ProxmoxAAS-Dashboard/scripts/config.js

16 lines
442 B
JavaScript
Raw Normal View History

import {request, goToPage, getURIData} from "./utils.js";
window.addEventListener("DOMContentLoaded", init);
async function init () {
let uriData = getURIData();
let node = uriData.node;
let type = uriData.type;
let vmid = uriData.vmid;
await populateForm(node, type, vmid);
}
async function populateForm (node, type, vmid) {
2022-12-20 00:21:24 +00:00
let config = await request(`/nodes/${node}/${type}/${vmid}/config`);
console.log(config);
}