2015-07-23 19:12:50 +02:00
|
|
|
import * as rest from './restapi.js';
|
2015-07-15 15:06:18 +02:00
|
|
|
|
|
|
|
export default class {
|
2015-07-24 13:15:00 +02:00
|
|
|
constructor (api) {
|
|
|
|
this.api = api;
|
2015-07-15 15:06:18 +02:00
|
|
|
}
|
|
|
|
|
2015-07-23 19:12:50 +02:00
|
|
|
get () {
|
|
|
|
return rest.get(this.api + 'info');
|
2015-07-15 15:06:18 +02:00
|
|
|
}
|
|
|
|
|
2015-07-23 19:12:50 +02:00
|
|
|
status () {
|
|
|
|
return rest.get(this.api + 'info/status');
|
2015-07-15 15:06:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
downloadLogFiles () {
|
|
|
|
window.location = this.api + 'info/logfiles';
|
|
|
|
}
|
|
|
|
|
2015-07-23 19:12:50 +02:00
|
|
|
acces () {
|
|
|
|
return rest.get(this.api + 'info/access');
|
2015-07-15 15:06:18 +02:00
|
|
|
}
|
|
|
|
}
|