debian-mirror-gitlab/app/assets/javascripts/pipelines/services/pipeline_service.js
2019-05-03 19:53:19 +05:30

16 lines
355 B
JavaScript

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