debian-mirror-gitlab/app/assets/javascripts/pipelines/services/pipeline_service.js
2017-08-17 22:00:37 +05:30

14 lines
257 B
JavaScript

import Vue from 'vue';
import VueResource from 'vue-resource';
Vue.use(VueResource);
export default class PipelineService {
constructor(endpoint) {
this.pipeline = Vue.resource(endpoint);
}
getPipeline() {
return this.pipeline.get();
}
}