diff options
author | Phil Hughes <me@iamphill.com> | 2018-06-27 12:43:26 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-27 12:44:54 +0300 |
commit | 5c483fd8656805b39b451fcd25c1efbd112d3cae (patch) | |
tree | 9d9d7c331030373d9454674f2b57c1f81faa2e54 /app/assets/javascripts/ide/services/index.js | |
parent | 093e43a01157854f0ef1ce435e7935feba041e27 (diff) |
specs
Diffstat (limited to 'app/assets/javascripts/ide/services/index.js')
-rw-r--r-- | app/assets/javascripts/ide/services/index.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/assets/javascripts/ide/services/index.js b/app/assets/javascripts/ide/services/index.js index da9de25302a..5e642067141 100644 --- a/app/assets/javascripts/ide/services/index.js +++ b/app/assets/javascripts/ide/services/index.js @@ -1,5 +1,6 @@ import Vue from 'vue'; import VueResource from 'vue-resource'; +import axios from '~/lib/utils/axios_utils'; import Api from '~/api'; Vue.use(VueResource); @@ -69,11 +70,7 @@ export default { }, getFiles(projectUrl, branchId) { const url = `${projectUrl}/files/${branchId}`; - return Vue.http.get(url, { - params: { - format: 'json', - }, - }); + return axios.get(url, { params: { format: 'json' } }); }, lastCommitPipelines({ getters }) { const commitSha = getters.lastCommit.id; |