Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. const body = JSON.stringify(values);
  2. let headers = new Headers();
  3. headers.append('Content-Type', 'application/json');
  4.  
  5. console.log(body)
  6.  
  7. return this.http.post(`${this.url}/auth`, body, {headers: headers})
  8. .map(response => response.json());
  9.  
  10. {"nickname":"rodrigo","email":"rodrigo@email.com","password":"password"}
  11.  
  12. {"nickname"=>"rodrigo", "email"=>"rodrigo@email.com", "password"=>"[FILTERED]", "registration"=>{"nickname"=>"rodrigo", "email"=>"rodrigo@email.com", "password"=>"[FILTERED]"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement