data rework
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
@@ -15,4 +16,7 @@ export class ClientService {
|
||||
public getClientInfo(address: string) {
|
||||
return this.httpClient.get(`${environment.API_URL}/api/client/${address}`);
|
||||
}
|
||||
public getClientInfoChart(address: string) {
|
||||
return this.httpClient.get(`${environment.API_URL}/api/client/${address}/chart`) as Observable<any[]>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user