2015-05-18 13:43:42 +02:00
|
|
|
import React from 'react';
|
2015-05-18 09:56:16 +02:00
|
|
|
import Router from 'react-router';
|
|
|
|
|
|
|
|
import AscribeApp from './components/ascribe_app';
|
2015-05-19 17:13:09 +02:00
|
|
|
import PieceList from './components/piece_list';
|
2015-05-26 13:48:46 +02:00
|
|
|
import EditionContainer from './components/edition_container';
|
2015-05-18 09:56:16 +02:00
|
|
|
|
2015-05-19 17:16:01 +02:00
|
|
|
let Route = Router.Route;
|
2015-05-18 09:56:16 +02:00
|
|
|
|
2015-05-20 16:44:45 +02:00
|
|
|
|
2015-05-19 17:16:01 +02:00
|
|
|
let routes = (
|
2015-05-18 18:00:12 +02:00
|
|
|
<Route name="app" path="/" handler={AscribeApp}>
|
2015-05-21 17:54:27 +02:00
|
|
|
<Route name="pieces" path="/pieces" handler={PieceList}>
|
2015-05-26 10:41:41 +02:00
|
|
|
|
|
|
|
</Route>
|
2015-05-26 13:48:46 +02:00
|
|
|
<Route name="edition" path="/editions/:editionId" handler={EditionContainer}>
|
2015-05-20 11:16:42 +02:00
|
|
|
</Route>
|
2015-05-18 18:00:12 +02:00
|
|
|
</Route>
|
2015-05-18 13:43:42 +02:00
|
|
|
);
|
|
|
|
|
2015-05-18 18:00:12 +02:00
|
|
|
export default routes;
|