1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 17:45:10 +01:00
onion/js/components/whitelabel/prize/constants/api_urls.js
2015-08-05 14:50:17 +02:00

18 lines
858 B
JavaScript

'use strict';
import AppPrizeConstants from './application_prize_constants';
function getApiUrls(subdomain) {
return {
'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}/',
'prize': AppPrizeConstants.prizeApiEndpoint + 'prize/' + subdomain + '/',
'jury': AppPrizeConstants.prizeApiEndpoint + 'prize/' + subdomain + '/jury/'
}
export default getApiUrls;