1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/components/whitelabel/prize/constants/api_urls.js

19 lines
860 B
JavaScript
Raw Normal View History

2015-07-14 21:15:10 +02:00
'use strict';
import AppConstants from '../../../../constants/application_constants';
function getApiUrls(subdomain) {
return {
2015-07-15 00:14:17 +02:00
'pieces_list': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/',
'users_login': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/login/',
'users_signup': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/',
'user': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/',
2015-07-15 01:46:37 +02:00
'piece_submit_to_prize': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/${piece_id}/submit/',
2015-08-05 14:40:26 +02:00
'piece': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/${piece_id}/',
'prize': AppConstants.apiEndpoint + 'prize/' + subdomain + '/',
'jury': AppConstants.apiEndpoint + 'prize/' + subdomain + '/jury/'
2015-07-14 21:15:10 +02:00
};
}
export default getApiUrls;