2015-07-14 21:15:10 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-08-11 14:47:28 +02:00
|
|
|
import AppPrizeConstants from './prize_application_constants';
|
2015-07-14 21:15:10 +02:00
|
|
|
|
2015-08-11 14:47:28 +02:00
|
|
|
function getPrizeApiUrls(subdomain) {
|
2015-07-14 21:15:10 +02:00
|
|
|
return {
|
2015-07-31 13:44:57 +02:00
|
|
|
'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-17 20:52:36 +02:00
|
|
|
'pieces_list': AppPrizeConstants.prizeApiEndpoint + subdomain + '/pieces/',
|
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/',
|
2015-08-10 17:02:10 +02:00
|
|
|
'jury_resend': AppPrizeConstants.prizeApiEndpoint + subdomain + '/jury/${email}/resend/',
|
|
|
|
'ratings': AppPrizeConstants.prizeApiEndpoint + subdomain + '/ratings/',
|
2015-08-12 13:21:05 +02:00
|
|
|
'rating': AppPrizeConstants.prizeApiEndpoint + subdomain + '/ratings/${piece_id}/',
|
2015-08-24 15:33:36 +02:00
|
|
|
'rating_average': AppPrizeConstants.prizeApiEndpoint + subdomain + '/ratings/${piece_id}/average/',
|
2015-08-25 15:19:10 +02:00
|
|
|
'select_piece' : AppPrizeConstants.prizeApiEndpoint + subdomain + '/ratings/${piece_id}/select/',
|
2015-08-12 13:21:05 +02:00
|
|
|
'notes': AppPrizeConstants.prizeApiEndpoint + subdomain + '/notes/',
|
|
|
|
'note': AppPrizeConstants.prizeApiEndpoint + subdomain + '/notes/${piece_id}/'
|
|
|
|
|
2015-08-05 14:50:44 +02:00
|
|
|
};
|
2015-07-14 21:15:10 +02:00
|
|
|
}
|
|
|
|
|
2015-08-11 14:47:28 +02:00
|
|
|
export default getPrizeApiUrls;
|