Alexis Hernandez
7 years ago
2 changed files with 25 additions and 1 deletions
@ -0,0 +1,22 @@ |
|||
import { Injectable } from '@angular/core'; |
|||
import { HttpClient, HttpHeaders } from '@angular/common/http'; |
|||
import { Observable } from 'rxjs/Observable'; |
|||
|
|||
import { environment } from '../../environments/environment'; |
|||
|
|||
const httpOptions = { |
|||
headers: new HttpHeaders({ 'Content-Type': 'application/json' }) |
|||
}; |
|||
|
|||
@Injectable() |
|||
export class TransactionsService { |
|||
|
|||
private baseUrl = environment.api.url + '/transactions'; |
|||
|
|||
constructor(private http: HttpClient) { } |
|||
|
|||
verifyEmail(txid: string): Observable<any> { |
|||
const url = this.baseUrl + txid; |
|||
return this.http.get(url); |
|||
} |
|||
} |
Loading…
Reference in new issue