onion/js/components/whitelabel/wallet/constants/wallet_api_urls.js

22 lines
698 B
JavaScript
Raw Normal View History

'use strict';
import walletConstants from './wallet_application_constants';
2015-08-12 09:30:24 +02:00
// 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}/'
};
}
2015-08-18 12:08:01 +02:00
else if (subdomain === 'ikonotv'){
return {
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/'
};
}
2015-08-12 09:30:24 +02:00
return {};
}
export default getWalletApiUrls;