1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-25 02:46:09 +01:00
onion/js/components/whitelabel/prize/constants/api_urls.js
Tim Daubenschütz ea871f3d1d acl for delete
2015-07-15 01:46:37 +02:00

17 lines
712 B
JavaScript

'use strict';
import AppConstants from '../../../../constants/application_constants';
function getApiUrls(subdomain) {
return {
'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/',
'piece_submit_to_prize': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/${piece_id}/submit/',
'piece': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/${piece_id}/'
};
}
export default getApiUrls;