blob: 07040bf0d7374db826fa6e4fe15b969853745250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* eslint-disable class-methods-use-this */
import Vue from 'vue';
import VueResource from 'vue-resource';
Vue.use(VueResource);
export default class EnvironmentsService {
constructor(endpoint) {
this.environments = Vue.resource(endpoint);
}
get(scope, page) {
return this.environments.get({ scope, page });
}
postAction(endpoint) {
return Vue.http.post(endpoint, {}, { emulateJSON: true });
}
}
|