Created
July 23, 2020 19:43
-
-
Save asadbek064/6c3e38810003879790cc9133907484be to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import { Injectable } from '@angular/core'; | |
| import { HttpClient } from '@angular/common/http'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class AuthService { | |
| constructor( | |
| private http: HttpClient | |
| ) { } | |
| sendToken(token) { | |
| return this.http.post<any>('http://localhost:3000/recaptcha/validate_token', {recaptcha: token}); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment