UNPKG

@jamesgopsill/repetier-server-client

Version:
17 lines (16 loc) 410 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.info = void 0; async function info() { const url = `${this.httpUrl}/printer/info`; const config = { method: "GET", }; const request = new Request(url, config); const r = (await fetch(request)); r.data = null; if (r.ok) r.data = await r.json(); return r; } exports.info = info;