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

22 lines
561 B
JavaScript
Raw Normal View History

import React from 'react';
2015-05-18 09:56:16 +02:00
import Router from 'react-router';
import AscribeApp from './components/ascribe_app';
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}>
<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}>
</Route>
2015-05-18 18:00:12 +02:00
</Route>
);
2015-05-18 18:00:12 +02:00
export default routes;