Renamed /mining/pool-blocks/xxx -> /mining/pool/:poolId/blocks

This commit is contained in:
nymkappa committed 2022-02-14 14:08:34 +09:00
1 parent 690f33843c
commit 2a5b0cfb07
2 files changed
+7 -5

No files matched your search

+4 -2
View File
@@ -139,9 +139,11 @@ export class ApiService {
getPoolBlocks$(poolId: number, fromHeight: number): Observable<BlockExtended[]> {
if (fromHeight !== undefined) {
return this.httpClient.get<BlockExtended[]>(this.apiBaseUrl + this.apiBasePath +`/api/v1/mining/pool-blocks/${poolId}/${fromHeight}`);
return this.httpClient.get<BlockExtended[]>(this.apiBaseUrl + this.apiBasePath +
`/api/v1/mining/pool/${poolId}/blocks/${fromHeight}`);
} else {
return this.httpClient.get<BlockExtended[]>(this.apiBaseUrl + this.apiBasePath +`/api/v1/mining/pool-blocks/${poolId}`);
return this.httpClient.get<BlockExtended[]>(this.apiBaseUrl + this.apiBasePath +
`/api/v1/mining/pool/${poolId}/blocks`);
}
}
}