2015-08-11 14:47:28 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-08-17 20:52:36 +02:00
|
|
|
import walletConstants from './wallet_application_constants';
|
|
|
|
|
2015-08-12 09:30:24 +02:00
|
|
|
// gets subdomain as a parameter
|
2015-08-17 20:52:36 +02:00
|
|
|
function getWalletApiUrls(subdomain) {
|
|
|
|
if (subdomain === 'cyland'){
|
|
|
|
return {
|
|
|
|
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
2015-08-25 10:47:38 +02:00
|
|
|
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
|
|
|
'piece_extradata': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/extradata/'
|
2015-08-17 20:52:36 +02:00
|
|
|
};
|
|
|
|
}
|
2015-08-18 12:08:01 +02:00
|
|
|
else if (subdomain === 'ikonotv'){
|
|
|
|
return {
|
2015-08-28 12:20:36 +02:00
|
|
|
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
|
|
|
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/'
|
2015-08-18 12:08:01 +02:00
|
|
|
};
|
|
|
|
}
|
2015-08-12 09:30:24 +02:00
|
|
|
return {};
|
2015-08-11 14:47:28 +02:00
|
|
|
}
|
|
|
|
|
2015-08-17 20:52:36 +02:00
|
|
|
export default getWalletApiUrls;
|