mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
rename prize endpoint to prizes
This commit is contained in:
parent
88cbf1641c
commit
84703779a9
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@ lib-cov
|
|||||||
*.gz
|
*.gz
|
||||||
*.sublime-project
|
*.sublime-project
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
|
webapp-dependencies.txt
|
||||||
|
|
||||||
pids
|
pids
|
||||||
logs
|
logs
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import AppConstants from '../../../../constants/application_constants';
|
import AppPrizeConstants from './application_prize_constants';
|
||||||
|
|
||||||
function getApiUrls(subdomain) {
|
function getApiUrls(subdomain) {
|
||||||
return {
|
return {
|
||||||
'pieces_list': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/',
|
'pieces_list': AppPrizeConstants.prizeApiEndpoint + subdomain + '/pieces/',
|
||||||
'users_login': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/login/',
|
'users_login': AppPrizeConstants.prizeApiEndpoint + subdomain + '/users/login/',
|
||||||
'users_signup': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/',
|
'users_signup': AppPrizeConstants.prizeApiEndpoint + subdomain + '/users/',
|
||||||
'user': AppConstants.apiEndpoint + 'prize/' + subdomain + '/users/',
|
'user': AppPrizeConstants.prizeApiEndpoint + subdomain + '/users/',
|
||||||
'piece_submit_to_prize': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/${piece_id}/submit/',
|
'piece_submit_to_prize': AppPrizeConstants.prizeApiEndpoint + subdomain + '/pieces/${piece_id}/submit/',
|
||||||
'piece': AppConstants.apiEndpoint + 'prize/' + subdomain + '/pieces/${piece_id}/'
|
'piece': AppPrizeConstants.prizeApiEndpoint + subdomain + '/pieces/${piece_id}/'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
import AppConstants from '../../../../constants/application_constants';
|
||||||
|
|
||||||
|
let constants = {
|
||||||
|
prizeApiEndpoint: AppConstants.apiEndpoint + 'prizes/'
|
||||||
|
};
|
||||||
|
|
||||||
|
export default constants;
|
@ -21,7 +21,7 @@ let Route = Router.Route;
|
|||||||
let baseUrl = AppConstants.baseUrl;
|
let baseUrl = AppConstants.baseUrl;
|
||||||
|
|
||||||
|
|
||||||
function getRoutes(commonRoutes) {
|
function getRoutes() {
|
||||||
return (
|
return (
|
||||||
<Route name="app" path={baseUrl} handler={App}>
|
<Route name="app" path={baseUrl} handler={App}>
|
||||||
<Route name="landing" path={baseUrl} handler={Landing} />
|
<Route name="landing" path={baseUrl} handler={Landing} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user