Created
January 20, 2018 15:10
-
-
Save dasmido/12456cfe8161f443e721bc60498ab074 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
// 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