UNPKG

ts-freebox

Version:

31 lines (28 loc) 671 B
import { submodule_default } from "./chunk-3GGSTR2F.mjs"; import { fetch_default } from "./chunk-4JVQES7H.mjs"; // src/lib/configuration/system.ts var System = class extends submodule_default { constructor(freebox) { super(freebox); } async config() { return await fetch_default(`${this.baseUrl}/system/`, this.token); } async reboot() { return await fetch_default(`${this.baseUrl}/system/reboot/`, this.token, null, "POST"); } /** * @requires API v11 - Freebox Ultra Only * @returns */ async shutdown() { return await fetch_default(`${this.baseUrl}/system/shutdown/`, this.token, null, "POST"); } }; export { System };