mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
Fix lumenus whitelabel api endpoints
This commit is contained in:
parent
4ca8ca8feb
commit
6223248ea0
@ -4,25 +4,26 @@ import walletConstants from './wallet_application_constants';
|
||||
|
||||
// gets subdomain as a parameter
|
||||
function getWalletApiUrls(subdomain) {
|
||||
if (subdomain === 'cyland'){
|
||||
if (subdomain === 'cyland') {
|
||||
return {
|
||||
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
||||
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
||||
'piece_extradata': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/extradata/',
|
||||
'user': walletConstants.walletApiEndpoint + subdomain + '/users/'
|
||||
};
|
||||
}
|
||||
else if (subdomain === 'ikonotv'){
|
||||
} else if (subdomain === 'ikonotv') {
|
||||
return {
|
||||
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
||||
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
||||
'user': walletConstants.walletApiEndpoint + subdomain + '/users/'
|
||||
};
|
||||
}
|
||||
else if (subdomain === 'lumenus'){
|
||||
} else if (subdomain === 'lumenus') {
|
||||
return {
|
||||
'editions': walletConstants.walletApiEndpoint + subdomain + '/editions/',
|
||||
'editions_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/editions/',
|
||||
'edition': walletConstants.walletApiEndpoint + subdomain + '/editions/${edition_id}/',
|
||||
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
||||
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
||||
'piece_extradata': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/extradata/',
|
||||
'user': walletConstants.walletApiEndpoint + subdomain + '/users/'
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user