mirror of
https://github.com/HirziDevs/PteroStats
synced 2026-01-03 11:45:41 +00:00
13 lines
448 B
JavaScript
13 lines
448 B
JavaScript
const config = require("./configuration.js");
|
|
|
|
module.exports = async function getNodeConfiguration(id) {
|
|
return fetch(`${new URL(process.env?.PanelURL).origin}/api/application/nodes/${id}/configuration`, {
|
|
method: "GET",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
"Authorization": `Bearer ${process.env?.PanelKEY}`
|
|
},
|
|
})
|
|
.then((res) => res.json())
|
|
.then((data) => data)
|
|
} |