debian-mirror-gitlab/app/assets/javascripts/merge_conflicts/merge_conflict_service.js
2018-11-08 19:23:39 +05:30

16 lines
399 B
JavaScript

import axios from '../lib/utils/axios_utils';
export default class MergeConflictsService {
constructor(options) {
this.conflictsPath = options.conflictsPath;
this.resolveConflictsPath = options.resolveConflictsPath;
}
fetchConflictsData() {
return axios.get(this.conflictsPath);
}
submitResolveConflicts(data) {
return axios.post(this.resolveConflictsPath, data);
}
}