You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
587 B
22 lines
587 B
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);
|
|
}
|
|
}
|
|
|