@jamesgopsill/repetier-server-client
Version:
A Typescript client for Repetier Server
17 lines (16 loc) • 410 B
JavaScript
;
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;