Created
December 27, 2014 17:26
-
-
Save why-jay/2fb21fc6579caf2a26c4 to your computer and use it in GitHub Desktop.
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 characters
import makeHttpRequest from 'http-util'; | |
const baseUrl = 'http://foo.com'; | |
export function getUser(id) { | |
const response_body = makeHttpRequest(`${baseUrl}/user/${id}`); | |
// blah... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment