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) {
|
2015-11-05 13:51:40 +01:00
|
|
|
if (subdomain === 'cyland') {
|
2015-08-17 20:52:36 +02:00
|
|
|
return {
|
|
|
|
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
2015-08-25 10:47:38 +02:00
|
|
|
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
2015-09-18 09:46:37 +02:00
|
|
|
'piece_extradata': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/extradata/',
|
|
|
|
'user': walletConstants.walletApiEndpoint + subdomain + '/users/'
|
2015-08-17 20:52:36 +02:00
|
|
|
};
|
2015-11-05 13:51:40 +01:00
|
|
|
} else if (subdomain === 'ikonotv') {
|
2015-08-18 12:08:01 +02:00
|
|
|
return {
|
2015-08-28 12:20:36 +02:00
|
|
|
'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/',
|
2015-09-08 11:35:34 +02:00
|
|
|
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
|
|
|
'user': walletConstants.walletApiEndpoint + subdomain + '/users/'
|
2015-08-18 12:08:01 +02:00
|
|
|
};
|
2015-11-24 12:08:37 +01:00
|
|
|
} else if (subdomain === 'lumenus' || subdomain === '23vivi') {
|
2015-10-21 14:10:21 +02:00
|
|
|
return {
|
2015-11-24 18:17:38 +01:00
|
|
|
'editions_list': walletConstants.walletApiEndpoint + 'markets/' + subdomain + '/pieces/${piece_id}/editions/',
|
|
|
|
'edition': walletConstants.walletApiEndpoint + 'markets/' + subdomain + '/editions/${bitcoin_id}/',
|
|
|
|
'pieces_list': walletConstants.walletApiEndpoint + 'markets/' + subdomain + '/pieces/',
|
|
|
|
'piece': walletConstants.walletApiEndpoint + 'markets/' + subdomain + '/pieces/${piece_id}/',
|
|
|
|
'piece_extradata': walletConstants.walletApiEndpoint + 'markets/' + subdomain + '/pieces/${piece_id}/extradata/',
|
|
|
|
'user': walletConstants.walletApiEndpoint + 'markets/' + subdomain + '/users/'
|
2015-10-21 14:10:21 +02:00
|
|
|
};
|
|
|
|
}
|
2015-08-12 09:30:24 +02:00
|
|
|
return {};
|
2015-08-11 14:47:28 +02:00
|
|
|
}
|
|
|
|
|
2015-10-21 14:10:21 +02:00
|
|
|
export default getWalletApiUrls;
|