Skip to content

Instantly share code, notes, and snippets.

@why-jay
Created December 27, 2014 17:26
Show Gist options
  • Save why-jay/2fb21fc6579caf2a26c4 to your computer and use it in GitHub Desktop.
Save why-jay/2fb21fc6579caf2a26c4 to your computer and use it in GitHub Desktop.
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