Skip to content

Instantly share code, notes, and snippets.

@dasmido
Created January 20, 2018 15:10
Show Gist options
  • Save dasmido/12456cfe8161f443e721bc60498ab074 to your computer and use it in GitHub Desktop.
Save dasmido/12456cfe8161f443e721bc60498ab074 to your computer and use it in GitHub Desktop.
// register user function
// function for authenticate user
authenticateUser(user){
let headers = new Headers();
headers.append('Content-Type', 'application/json');
return this.http.post('http://localhost:9090/users/authenticate', user, {headers: headers}).map(res => res.json());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment