0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-06-01 13:36:12 +02:00
Doodle3D-API/src/updateapi.js

30 lines
429 B
JavaScript

import * as rest from './restapi.js';
export default class {
constructor (api) {
this.api = api;
}
status () {
return rest.get(`${this.api}update/status`);
}
download () {
//not tested
return rest.post(`${this.api}update/download`, {});
}
install () {
//not tested
return rest.post(`${this.api}update/install`, {});
}
clear () {
//not tested
return rest.post(`${this.api}update/clear`, {});
}
}