0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-06-28 22:31:22 +02:00
Doodle3D-API/src/api/info.js

20 lines
358 B
JavaScript
Raw Normal View History

2016-04-21 15:32:11 +02:00
import * as rest from '../rest.js';
2015-07-15 15:06:18 +02:00
2016-04-21 15:44:20 +02:00
export default class Info {
constructor(api) {
this.api = api;
2015-07-15 15:06:18 +02:00
}
2016-04-21 15:44:20 +02:00
get() {
2016-04-21 15:09:49 +02:00
return rest.get(`${ this.api }info`);
2015-07-15 15:06:18 +02:00
}
2016-04-21 15:44:20 +02:00
status() {
2016-04-21 15:09:49 +02:00
return rest.get(`${ this.api }info/status`);
2015-07-15 15:06:18 +02:00
}
2016-04-21 15:44:20 +02:00
downloadLogFiles() {
2016-04-21 15:09:49 +02:00
window.location = `${ this.api }info/logfiles`;
2015-07-15 15:06:18 +02:00
}
2016-04-21 15:44:20 +02:00
acces() {
2016-04-21 15:09:49 +02:00
return rest.get(`${ this.api }info/access`);
2015-07-15 15:06:18 +02:00
}
}