2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
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-06-01 09:05:30 +02:00
|
|
|
<Route name="app" handler={AscribeApp}>
|
2015-06-05 11:06:36 +02:00
|
|
|
<Route name="pieces" path="/" handler={PieceList} />
|
|
|
|
<Route name="edition" path="/editions/:editionId" handler={EditionContainer} />
|
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;
|