summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/issue_show/services/index.js
blob: 348ad8d68139a30ff1e2f81bff0f88c01acd99cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Vue from 'vue';
import VueResource from 'vue-resource';

Vue.use(VueResource);

export default class Service {
  constructor(endpoint) {
    this.endpoint = endpoint;

    this.resource = Vue.resource(this.endpoint);
  }

  getData() {
    return this.resource.get();
  }
}