Add difficulty chart timespan selection

This commit is contained in:
nymkappa
2022-02-17 09:41:05 +09:00
parent 9fa7e58d82
commit f45103e7e3
7 changed files with 93 additions and 41 deletions

View File

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