2015-07-14 21:15:10 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-07-31 13:44:57 +02:00
|
|
|
import AppPrizeConstants from './application_prize_constants';
|
2015-07-14 21:15:10 +02:00
|
|
|
|
|
|
|
function getApiUrls(subdomain) {
|
|
|
|
return {
|
2015-07-31 13:44:57 +02:00
|
|
|
'pieces_list': AppPrizeConstants.prizeApiEndpoint + subdomain + '/pieces/',
|
|
|
|
'users_login': AppPrizeConstants.prizeApiEndpoint + subdomain + '/users/login/',
|
|
|
|
'users_signup': AppPrizeConstants.prizeApiEndpoint + subdomain + '/users/',
|
|
|
|
'user': AppPrizeConstants.prizeApiEndpoint + subdomain + '/users/',
|
|
|
|
'piece_submit_to_prize': AppPrizeConstants.prizeApiEndpoint + subdomain + '/pieces/${piece_id}/submit/',
|
2015-08-05 14:50:17 +02:00
|
|
|
'piece': AppPrizeConstants.prizeApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
2015-08-05 14:50:44 +02:00
|
|
|
'prize': AppPrizeConstants.prizeApiEndpoint + subdomain + '/',
|
2015-08-07 11:27:44 +02:00
|
|
|
'jurys': AppPrizeConstants.prizeApiEndpoint + subdomain + '/jury/',
|
|
|
|
'jury': AppPrizeConstants.prizeApiEndpoint + subdomain + '/jury/${email}/',
|
|
|
|
'jury_activate': AppPrizeConstants.prizeApiEndpoint + subdomain + '/jury/${email}/activate/',
|
|
|
|
'jury_resend': AppPrizeConstants.prizeApiEndpoint + subdomain + '/jury/${email}/resend/'
|
2015-08-05 14:50:44 +02:00
|
|
|
};
|
2015-07-14 21:15:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default getApiUrls;
|