Skip to content

Instantly share code, notes, and snippets.

@alvinl
Last active August 29, 2015 14:15
Show Gist options
  • Save alvinl/7c1fbec8a76992d81acf to your computer and use it in GitHub Desktop.
Save alvinl/7c1fbec8a76992d81acf to your computer and use it in GitHub Desktop.
var req = {
method: 'POST',
url: 'http://104.243.42.114:3000/auth/register',
data: {
email: 'test@google.com',
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