1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 17:45:10 +01:00
onion/js/components/whitelabel/prize/routes.js

39 lines
1.5 KiB
JavaScript
Raw Normal View History

'use strict';
import React from 'react';
import Router from 'react-router';
import Landing from './components/landing';
2015-07-13 19:53:16 +02:00
import LoginContainer from './components/login_container';
import SignupContainer from './components/signup_container';
import PasswordResetContainer from '../../../components/password_reset_container';
2015-07-13 22:58:53 +02:00
import PrizeRegisterPiece from './components/register_piece';
2015-07-13 22:05:16 +02:00
import PrizePieceList from './components/piece_list';
2015-07-13 23:29:07 +02:00
import PieceContainer from '../../ascribe_detail/piece_container';
import EditionContainer from '../../ascribe_detail/edition_container';
import App from './app';
import AppConstants from '../../../constants/application_constants';
let Route = Router.Route;
let baseUrl = AppConstants.baseUrl;
function getRoutes(commonRoutes) {
return (
<Route name="app" path={baseUrl} handler={App}>
<Route name="landing" path="/" handler={Landing} />
2015-07-13 19:53:16 +02:00
<Route name="login" path="login" handler={LoginContainer} />
<Route name="signup" path="signup" handler={SignupContainer} />
<Route name="password_reset" path="password_reset" handler={PasswordResetContainer} />
2015-07-13 22:58:53 +02:00
<Route name="register_piece" path="register_piece" handler={PrizeRegisterPiece} />
2015-07-13 22:05:16 +02:00
<Route name="pieces" path="collection" handler={PrizePieceList} />
2015-07-13 23:29:07 +02:00
<Route name="piece" path="pieces/:pieceId" handler={PieceContainer} />
<Route name="edition" path="editions/:editionId" handler={EditionContainer} />
</Route>
);
}
export default getRoutes;