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/',
|
2015-07-15 00:57:31 +02:00
|
|
|
'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/',
|
|
|
|
'piece': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/${piece_id}/'
|
2015-07-14 21:15:10 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export default getApiUrls;
|