0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-06-01 21:44:31 +02:00
Doodle3D-API/src/api/info.js
2016-04-21 15:52:23 +02:00

20 lines
378 B
JavaScript

import * as rest from '../rest.js';
export default class Info {
constructor(api) {
this.api = api;
}
get() {
return rest.get(`${ this.api }info`);
}
status() {
return rest.get(`${ this.api }info/status`);
}
downloadLogFiles() {
window.location = `${ this.api }info/logfiles`;
}
acces() {
return rest.get(`${ this.api }info/access`);
}
}