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

42 lines
1.9 KiB
JavaScript
Raw Normal View History

'use strict';
import React from 'react';
import Router from 'react-router';
import Landing from './components/prize_landing';
import LoginContainer from './components/prize_login_container';
2015-07-17 15:02:44 +02:00
import LogoutContainer from '../../../components/logout_container';
import SignupContainer from './components/prize_signup_container';
2015-07-13 19:53:16 +02:00
import PasswordResetContainer from '../../../components/password_reset_container';
import PrizeRegisterPiece from './components/prize_register_piece';
import PrizePieceList from './components/prize_piece_list';
import PrizePieceContainer from './components/ascribe_detail/prize_piece_container';
2015-07-13 23:29:07 +02:00
import EditionContainer from '../../ascribe_detail/edition_container';
import SettingsContainer from './components/prize_settings_container';
import App from './prize_app';
import AppConstants from '../../../constants/application_constants';
let Route = Router.Route;
let baseUrl = AppConstants.baseUrl;
2015-07-31 13:44:57 +02:00
function getRoutes() {
return (
<Route name="app" path={baseUrl} handler={App}>
2015-07-14 18:00:34 +02:00
<Route name="landing" path={baseUrl} handler={Landing} />
2015-07-13 19:53:16 +02:00
<Route name="login" path="login" handler={LoginContainer} />
2015-07-17 15:02:44 +02:00
<Route name="logout" path="logout" handler={LogoutContainer} />
2015-07-13 19:53:16 +02:00
<Route name="signup" path="signup" handler={SignupContainer} />
<Route name="password_reset" path="password_reset" handler={PasswordResetContainer} />
<Route name="register_piece" path="register_piece" handler={PrizeRegisterPiece} headerTitle="+ NEW WORK" />
<Route name="pieces" path="collection" handler={PrizePieceList} headerTitle="COLLECTION" />
<Route name="piece" path="pieces/:pieceId" handler={PrizePieceContainer} />
2015-07-13 23:29:07 +02:00
<Route name="edition" path="editions/:editionId" handler={EditionContainer} />
2015-07-14 18:55:34 +02:00
<Route name="settings" path="settings" handler={SettingsContainer} />
</Route>
);
}
2015-07-27 18:19:55 +02:00
export default getRoutes;