blob: 072b9827f5aabf856ff4daaed5b0ae451a614943 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import axios from '~/lib/utils/axios_utils';
export default class ClusterService {
constructor(options = {}) {
this.options = options;
}
fetchClusterStatus() {
return axios.get(this.options.endpoint);
}
fetchClusterEnvironments() {
return axios.get(this.options.clusterEnvironmentsEndpoint);
}
static updateCluster(endpoint, data) {
return axios.put(endpoint, data);
}
}
|