gitlab-org--gitlab-foss/app/assets/javascripts/merge_conflicts/merge_conflict_service.js

17 lines
399 B
JavaScript
Raw Normal View History

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);
}
}