summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines/services/pipeline_service.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pipelines/services/pipeline_service.js')
-rw-r--r--app/assets/javascripts/pipelines/services/pipeline_service.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/assets/javascripts/pipelines/services/pipeline_service.js b/app/assets/javascripts/pipelines/services/pipeline_service.js
deleted file mode 100644
index ba2830ec596..00000000000
--- a/app/assets/javascripts/pipelines/services/pipeline_service.js
+++ /dev/null
@@ -1,21 +0,0 @@
-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
- deleteAction(endpoint) {
- return axios.delete(`${endpoint}.json`);
- }
-
- // eslint-disable-next-line class-methods-use-this
- postAction(endpoint) {
- return axios.post(`${endpoint}.json`);
- }
-}