Added hashrate chart

This commit is contained in:
nymkappa
2022-02-19 22:09:35 +09:00
parent 5a6f9269b1
commit cc2890fd60
8 changed files with 284 additions and 12 deletions

View File

@@ -156,4 +156,11 @@ export class ApiService {
(interval !== undefined ? `/${interval}` : '')
);
}
getHistoricalHashrate$(interval: string | undefined): Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/hashrate` +
(interval !== undefined ? `/${interval}` : '')
);
}
}