2018-01-30 11:47:19 -05:00
|
|
|
import axios from '../lib/utils/axios_utils';
|
2016-12-13 22:01:05 -05:00
|
|
|
|
2018-06-13 07:35:32 -04:00
|
|
|
export default class MergeConflictsService {
|
|
|
|
constructor(options) {
|
|
|
|
this.conflictsPath = options.conflictsPath;
|
|
|
|
this.resolveConflictsPath = options.resolveConflictsPath;
|
|
|
|
}
|
2016-09-28 06:12:13 -04:00
|
|
|
|
2018-06-13 07:35:32 -04:00
|
|
|
fetchConflictsData() {
|
|
|
|
return axios.get(this.conflictsPath);
|
2017-01-10 17:54:56 -05:00
|
|
|
}
|
2016-09-28 06:12:13 -04:00
|
|
|
|
2018-06-13 07:35:32 -04:00
|
|
|
submitResolveConflicts(data) {
|
|
|
|
return axios.post(this.resolveConflictsPath, data);
|
|
|
|
}
|
|
|
|
}
|