mirror of
https://github.com/ascribe/onion.git
synced 2024-12-25 02:46:09 +01:00
17 lines
712 B
JavaScript
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;
|