1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/components/whitelabel/prize/constants/api_urls.js

19 lines
843 B
JavaScript
Raw Normal View History

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/',
'piece': AppPrizeConstants.prizeApiEndpoint + subdomain + '/pieces/${piece_id}/',
2015-08-05 14:50:44 +02:00
'prize': AppPrizeConstants.prizeApiEndpoint + subdomain + '/',
'jury': AppPrizeConstants.prizeApiEndpoint + subdomain + '/jury/'
};
2015-07-14 21:15:10 +02:00
}
export default getApiUrls;