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 {
|
2016-04-21 15:52:23 +02:00
|
|
|
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`);
|
|
|
|
}
|
2015-10-12 12:33:33 +02:00
|
|
|
}
|