debian-mirror-gitlab/app/assets/javascripts/pipelines/services/pipeline_service.js
2018-10-15 14:42:47 +05:30

16 lines
337 B
JavaScript

import axios from '../../lib/utils/axios_utils';
export default class PipelineService {
constructor(endpoint) {
this.pipeline = endpoint;
}
getPipeline() {
return axios.get(this.pipeline);
}
// eslint-disable-next-line class-methods-use-this
postAction(endpoint) {
return axios.post(`${endpoint}.json`);
}
}