1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 17:45:10 +01:00
onion/js/components/whitelabel/wallet/constants/wallet_api_urls.js

25 lines
969 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/',
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-18 12:08:01 +02:00
else if (subdomain === 'ikonotv'){
return {
'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-08-12 09:30:24 +02:00
return {};
}
export default getWalletApiUrls;