mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 11:09:20 +01:00
ADD: avatars in HodlHodl offers list
This commit is contained in:
parent
97e715019d
commit
3a184ff578
2 changed files with 13 additions and 3 deletions
|
@ -52,6 +52,15 @@ export class HodlHodlApi {
|
|||
};
|
||||
}
|
||||
|
||||
_getHeadersWithoutAuthorization() {
|
||||
return {
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
async getCountries() {
|
||||
let response = await this._api.get('/api/v1/countries', this._getHeaders());
|
||||
|
||||
|
@ -120,7 +129,7 @@ export class HodlHodlApi {
|
|||
for (let key in pagination) {
|
||||
uri.push('pagination[' + key + ']=' + pagination[key]);
|
||||
}
|
||||
let response = await this._api.get('/api/v1/offers?' + uri.join('&'), this._getHeaders());
|
||||
let response = await this._api.get('/api/v1/offers?' + uri.join('&'), this._getHeadersWithoutAuthorization());
|
||||
|
||||
let json = response.body;
|
||||
if (!json || !json.offers || json.status === 'error') {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue