Skip to content

Instantly share code, notes, and snippets.

@alvinl
Last active August 29, 2015 14:15
var req = {
method: 'POST',
url: 'http://104.243.42.114:3000/auth/register',
data: {
email: '[email protected]',
password: 'somePassword'
},
}
$http.post('http://104.243.42.114:3000/auth/register', req.data)
.success(function (data, status, headers, config) {
console.log('success');
})
.error(function (data, status, headers, config) {
console.log('failed');
console.error(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment