Created
June 24, 2014 07:05
-
-
Save toamitkumar/afe3433b5126f3252458 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
function getHalResource(req, path, callback) { | |
var headers = {}; | |
headers['Content-Type'] = 'application/hal+json'; | |
var options = { | |
method: 'GET', | |
headers: headers | |
} | |
requestResource(req, path, options, callback); | |
} | |
function requestResource(req, path, options, callback, data) { | |
..... | |
var options = {uri: url}.merge(options); | |
..... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment