Last active
November 23, 2016 02:44
-
-
Save mearns/08d98b17326e7240f598f3443f08003e 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
const http = require('some-well-known-http-request-module'); | |
function init() { | |
http.config({ | |
baseUrl: 'http://example.com/rest/api/' | |
}); | |
} | |
function makeRestApiCall(data) { | |
return http.post('expectedEndpoint', data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment