Skip to content

Commit 1335d27

Browse files
committed
Merge branch 'develop' into release
2 parents e7b0924 + 4ecf2a5 commit 1335d27

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

ionic.config.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
"name": "CryptoWallet",
33
"app_id": "1bbfbbf6",
44
"type": "ionic-angular",
5-
"proxies": [],
5+
"proxies": [
6+
{
7+
"path": "/coinmarketcapticker",
8+
"proxyUrl": "https://api.coinmarketcap.com/v1/ticker/"
9+
},
10+
{
11+
"path": "/coinmarketcapgraphs",
12+
"proxyUrl": "https://graphs2.coinmarketcap.com/currencies/"
13+
}
14+
],
615
"integrations": {
716
"cordova": {
817
}

src/providers/coinmarketcap/coinmarketcap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { CoinMarketCapGraphsResponse } from '../../responses/coinmarketcapgraphs
99
@Injectable()
1010
export class CoinMarketCapProvider {
1111

12-
private readonly getPricePath: string = "https://api.coinmarketcap.com/v1/ticker/RESOURCE_URL/";
13-
private readonly allPricesPath: string = "https://graphs2.coinmarketcap.com/currencies/RESOURCE_URL/";
14-
private readonly allPricesBetweenPath: string = "https://graphs2.coinmarketcap.com/currencies/RESOURCE_URL/START_DATE/END_DATE/";
12+
private readonly getPricePath: string = "coinmarketcapticker/RESOURCE_URL/";
13+
private readonly allPricesPath: string = "coinmarketcapgraphs/RESOURCE_URL/";
14+
private readonly allPricesBetweenPath: string = "coinmarketcapgraphs/RESOURCE_URL/START_DATE/END_DATE/";
1515

1616
constructor(private http: HttpClient) {}
1717

0 commit comments

Comments
 (0)