Created
September 18, 2015 13:56
-
-
Save marclar/98b75c6d4e6201e6a542 to your computer and use it in GitHub Desktop.
This file contains 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 characters
import superagent from 'superagent'; | |
export default function loadInfo() { | |
return new Promise((resolve) => { | |
superagent.get(config.remoteApiBase + '/info').then( (res) => { | |
resolve(res.body); | |
}, (err) => { | |
reject(err); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment