Last active
January 25, 2018 14:40
-
-
Save lukasborawski/dd1ef3412d83acd29fba5c4728e7fd81 to your computer and use it in GitHub Desktop.
Revisions
-
lukasborawski renamed this gist
Jan 25, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
lukasborawski created this gist
Jan 25, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import axios from 'axios' export default { get (path) { if (path.indexOf('/') !== 0) { path = '/' + path } return axios .get('//' + process.env.apiHost + ':' + process.env.apiPort + '/api' + path) .then(({data}) => data) } }