mirror of
https://github.com/ascribe/onion.git
synced 2025-01-11 05:29:06 +01:00
22 lines
698 B
JavaScript
22 lines
698 B
JavaScript
'use strict';
|
|
|
|
import walletConstants from './wallet_application_constants';
|
|
|
|
// gets subdomain as a parameter
|
|
function getWalletApiUrls(subdomain) {
|
|
if (subdomain === 'cyland'){
|
|
return {
|
|
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
|
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/'
|
|
};
|
|
}
|
|
else if (subdomain === 'ikonotv'){
|
|
return {
|
|
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
|
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/'
|
|
};
|
|
}
|
|
return {};
|
|
}
|
|
|
|
export default getWalletApiUrls; |