mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Add 23vivi routes
This commit is contained in:
parent
ee61369d46
commit
a72fea5db4
@ -17,7 +17,7 @@ function getWalletApiUrls(subdomain) {
|
|||||||
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
'piece': walletConstants.walletApiEndpoint + subdomain + '/pieces/${piece_id}/',
|
||||||
'user': walletConstants.walletApiEndpoint + subdomain + '/users/'
|
'user': walletConstants.walletApiEndpoint + subdomain + '/users/'
|
||||||
};
|
};
|
||||||
} else if (subdomain === 'lumenus') {
|
} else if (subdomain === 'lumenus' || subdomain === '23vivi') {
|
||||||
return {
|
return {
|
||||||
'editions_list': walletConstants.walletApiEndpoint + 'market/' + subdomain + '/pieces/${piece_id}/editions/',
|
'editions_list': walletConstants.walletApiEndpoint + 'market/' + subdomain + '/pieces/${piece_id}/editions/',
|
||||||
'edition': walletConstants.walletApiEndpoint + 'market/' + subdomain + '/editions/${bitcoin_id}/',
|
'edition': walletConstants.walletApiEndpoint + 'market/' + subdomain + '/editions/${bitcoin_id}/',
|
||||||
|
@ -190,10 +190,54 @@ let ROUTES = {
|
|||||||
<Route path='verify' component={CoaVerifyContainer} />
|
<Route path='verify' component={CoaVerifyContainer} />
|
||||||
<Route path='*' component={ErrorNotFoundPage} />
|
<Route path='*' component={ErrorNotFoundPage} />
|
||||||
</Route>
|
</Route>
|
||||||
|
),
|
||||||
|
'23vivi': (
|
||||||
|
<Route path='/' component={WalletApp}>
|
||||||
|
<IndexRoute component={AuthProxyHandler({to: '/collection', when: 'loggedIn'})(LumenusLanding)} />
|
||||||
|
<Route
|
||||||
|
path='login'
|
||||||
|
component={AuthProxyHandler({to: '/collection', when: 'loggedIn'})(LoginContainer)} />
|
||||||
|
<Route
|
||||||
|
path='logout'
|
||||||
|
component={AuthProxyHandler({to: '/', when: 'loggedOut'})(LogoutContainer)}/>
|
||||||
|
<Route
|
||||||
|
path='signup'
|
||||||
|
component={AuthProxyHandler({to: '/collection', when: 'loggedIn'})(SignupContainer)} />
|
||||||
|
<Route
|
||||||
|
path='password_reset'
|
||||||
|
component={AuthProxyHandler({to: '/collection', when: 'loggedIn'})(PasswordResetContainer)} />
|
||||||
|
<Route
|
||||||
|
path='settings'
|
||||||
|
component={AuthProxyHandler({to: '/login', when: 'loggedOut'})(SettingsContainer)}/>
|
||||||
|
<Route
|
||||||
|
path='contract_settings'
|
||||||
|
component={AuthProxyHandler({to: '/login', when: 'loggedOut'})(ContractSettings)}/>
|
||||||
|
<Route
|
||||||
|
path='register_piece'
|
||||||
|
component={AuthProxyHandler({to: '/login', when: 'loggedOut'})(MarketRegisterPiece)}
|
||||||
|
headerTitle='+ NEW WORK'/>
|
||||||
|
<Route
|
||||||
|
path='collection'
|
||||||
|
component={AuthProxyHandler({to: '/login', when: 'loggedOut'})(MarketPieceList)}
|
||||||
|
headerTitle='COLLECTION'/>
|
||||||
|
<Route path='pieces/:pieceId' component={MarketPieceContainer} />
|
||||||
|
<Route path='editions/:editionId' component={MarketEditionContainer} />
|
||||||
|
<Route path='verify' component={CoaVerifyContainer} />
|
||||||
|
<Route path='*' component={ErrorNotFoundPage} />
|
||||||
|
</Route>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
function getRoutes(commonRoutes, subdomain) {
|
||||||
|
if(subdomain in ROUTES) {
|
||||||
|
return ROUTES[subdomain];
|
||||||
|
} else {
|
||||||
|
throw new Error('Subdomain wasn\'t specified in the wallet app.');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
function getRoutes(commonRoutes, subdomain) {
|
function getRoutes(commonRoutes, subdomain) {
|
||||||
if(subdomain in ROUTES) {
|
if(subdomain in ROUTES) {
|
||||||
return ROUTES[subdomain];
|
return ROUTES[subdomain];
|
||||||
|
Loading…
Reference in New Issue
Block a user